Colour reference

Editor Black

#1e1e1e

The default dark editor background in VS Code.

RGB
rgb(30 30 30)
HSL
0°, 0%, 12%
OKLCh
23.5% 0.000 0.0

Open in the picker

Editor Black in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#1e1e1e
RGBrgb(30 30 30)
RGB legacyrgb(30, 30, 30)
RGB percentrgb(11.76% 11.76% 11.76%)
HSLhsl(0 0% 11.8%)
HSL legacyhsl(0, 0%, 11.8%)
HSV / HSBhsv(0, 0%, 11.8%)
HWBhwb(0 11.8% 88.2%)
Nearest namemidnightblue (approx.)
CMYKcmyk(0%, 0%, 0%, 88.2%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(23.503% 0 0)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(23.503% 0 0)
CIE LChlch(11.264% 0 139.088)
CIE Lablab(11.264% 0 0)
Display P3color(display-p3 0.1176 0.1176 0.1176)
Rec. 2020color(rec2020 0.0584 0.0584 0.0584)
srgb-linearcolor(srgb-linear 0.013 0.013 0.013)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.0123 0.013 0.0141)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.118)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.013)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.118, 0.118, 0.118, 1.0)
GLSL vec4 — linearvec4(0.013, 0.013, 0.013, 1.0)
GLSL ivec3ivec3(30, 30, 30)
HLSL float3 — sRGBfloat3(0.118)
HLSL float3 — linearfloat3(0.013)
HLSL float4 — sRGBfloat4(0.118, 0.118, 0.118, 1.0)
HLSL half4 — sRGBhalf4(0.118, 0.118, 0.118, 1.0)
WGSL vec3f — sRGBvec3f(0.118)
WGSL vec4f — sRGBvec4f(0.118, 0.118, 0.118, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.013, 0.013, 0.013)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(0.118f, 0.118f, 0.118f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(30, 30, 30, 255)
Unreal FLinearColorFLinearColor(0.013f, 0.013f, 0.013f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(30, 30, 30, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.118, 0.118, 0.118, 1)
Flutter ColorColor(0xFF1E1E1E)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(30, 30, 30)
SwiftUI ColorColor(red: 0.118, green: 0.118, blue: 0.118)
UIKit UIColorUIColor(red: 0.118, green: 0.118, blue: 0.118, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x1E1E1E
0x hex (ARGB)0xFF1E1E1E
Array 0–1[0.118, 0.118, 0.118]
Array 0–255[30, 30, 30]
Decimal integer1973790

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Editor Black on white16.67:1AAALc 104Body text at any size
Editor Black on black1.26:1FailLc 0Not usable for text

Editor Black text on a white background

Editor Black text on a black background

White text on Editor Black

Black text on Editor Black

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#f7f7f7
  • 100#ededed
  • 200#dcdcdc
  • 300#c5c5c5
  • 400#a9a9a9
  • 500#8b8b8b
  • 600#717171
  • 700#5b5b5b
  • 800#484848
  • 900#383838
  • 950#1f1f1f

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#3e3e3e
  • Tint 2#606060
  • Tint 3#858585
  • Tint 4#acacac
  • Tint 5#d5d5d5
  • Shade 1#151515
  • Shade 2#0c0c0c
  • Shade 3#050505
  • Shade 4#020202
  • Shade 5#000000

Colours that work with Editor Black

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #1e1e1e
  • #1e1e1e
  • #1e1e1e
  • #1e1e1e
  • #1e1e1e

Closest CSS names

  • midnightblueΔEok 0.153
  • darkslategrayΔEok 0.172
  • navyΔEok 0.191
  • darkblueΔEok 0.206
  • indigoΔEok 0.207
  • maroonΔEok 0.210