#020F2E#020F2E

#020F2E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.0% C 0.066 H 261.4°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#020F2E
RGBrgb(2, 15, 46)
HSLhsl(222, 92%, 9%)
HSVhsv(222, 96%, 18%)
CMYKcmyk(95.7%, 67.4%, 0%, 82%)
CIE-LABlab(4.98, 6.74, -21.81)
CIE-LCHlch(4.98, 22.83, 287.16°)
OKLaboklab(17.96% -0.0099 -0.0654)
OKLCHoklch(17.96% 0.066 261.4)
XYZxyz(0.6888, 0.5517, 2.6544)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F2E #2E2102
analogous
#02252E #020F2E #0B022E
triadic
#020F2E #2E020F #0F2E02
tetradic
#020F2E #2E0225 #2E2102 #022E0B
square
#020F2E #2E0225 #2E2102 #022E0B
split-complementary
#020F2E #2E0B02 #252E02
monochromatic
#010A1D #010A1D #020F2E #052269 #0735A3

Accessibility & contrast

On white

18.91
#020F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#020F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020F2E
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F2E#FFFFFF#000000##FFFFFF
##020F2E1.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #020f2e;
/* rgb */ color: rgb(2, 15, 46);
/* oklch */ color: oklch(18.0% 0.066 261.4);
Tailwind
colors: {
  custom: {
    50: '#494d67',
    500: '#020f2e',
    950: '#000000',
  },
}
SCSS
$custom: #020f2e;
$custom-light: #494d67;
$custom-dark: #000000;
JSON
{
  "hex": "#020f2e",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 222.273,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.17961,
    "c": 0.06618,
    "h": 261.4
  },
  "luminance": 0.00552
}

Semantic roles & 50–950 ramp

primary
#020F2E
secondary
#735819
accent
#C029FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020F2E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#020F2E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva