#02042E#02042E

#02042E is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.2% C 0.084 H 267.7°. Best body text is #FFFFFF at 19.82:1 contrast (WCAG AA passes).

Color values

HEX#02042E
RGBrgb(2, 4, 46)
HSLhsl(237, 92%, 9%)
HSVhsv(237, 96%, 18%)
CMYKcmyk(95.7%, 91.3%, 0%, 82%)
CIE-LABlab(2.68, 11.44, -25.47)
CIE-LCHlch(2.68, 27.92, 294.18°)
OKLaboklab(15.16% -0.0033 -0.0839)
OKLCHoklch(15.16% 0.084 267.7)
XYZxyz(0.5614, 0.2969, 2.6120)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02042E #2E2C02
analogous
#021A2E #02042E #16022E
triadic
#02042E #2E0204 #042E02
tetradic
#02042E #2E021A #2E2C02 #022E16
square
#02042E #2E021A #2E2C02 #022E16
split-complementary
#02042E #2E1602 #1A2E02
monochromatic
#01031D #01031D #02042E #050969 #070EA3

Accessibility & contrast

On white

19.82
#02042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#02042E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02042E
19.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02042E#FFFFFF#000000##FFFFFF
##02042E1.0019.821.0619.82
#FFFFFF19.821.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2F
Deuteranopia (green-blind)
#00082D
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #02042e;
/* rgb */ color: rgb(2, 4, 46);
/* oklch */ color: oklch(15.2% 0.084 267.7);
Tailwind
colors: {
  custom: {
    50: '#494867',
    500: '#02042e',
    950: '#000000',
  },
}
SCSS
$custom: #02042e;
$custom-light: #494867;
$custom-dark: #000000;
JSON
{
  "hex": "#02042e",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 237.273,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15155,
    "c": 0.08393,
    "h": 267.7
  },
  "luminance": 0.00297
}

Semantic roles & 50–950 ramp

primary
#02042E
secondary
#736F19
accent
#F529FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #02042E

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

Preview Lab → · Contrast checker → · Palette generator →

#02042E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva