#02042F#02042F

#02042F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.3% C 0.085 H 267.6°. Best body text is #FFFFFF at 19.79:1 contrast (WCAG AA passes).

Color values

HEX#02042F
RGBrgb(2, 4, 47)
HSLhsl(237, 92%, 10%)
HSVhsv(237, 96%, 18%)
CMYKcmyk(95.7%, 91.5%, 0%, 81.6%)
CIE-LABlab(2.75, 11.95, -26.11)
CIE-LCHlch(2.75, 28.71, 294.58°)
OKLaboklab(15.3% -0.0035 -0.0853)
OKLCHoklch(15.3% 0.085 267.6)
XYZxyz(0.5814, 0.3049, 2.7170)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02042F #2F2D02
analogous
#021B2F #02042F #17022F
triadic
#02042F #2F0204 #042F02
tetradic
#02042F #2F021B #2F2D02 #022F17
square
#02042F #2F021B #2F2D02 #022F17
split-complementary
#02042F #2F1702 #1B2F02
monochromatic
#01021D #01021D #02042F #04096A #070EA4

Accessibility & contrast

On white

19.79
#02042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02042F
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02042F#FFFFFF#000000##FFFFFF
##02042F1.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C30
Deuteranopia (green-blind)
#00082E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #02042f;
/* rgb */ color: rgb(2, 4, 47);
/* oklch */ color: oklch(15.3% 0.085 267.6);
Tailwind
colors: {
  custom: {
    50: '#494868',
    500: '#02042f',
    950: '#000000',
  },
}
SCSS
$custom: #02042f;
$custom-light: #494868;
$custom-dark: #000000;
JSON
{
  "hex": "#02042f",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 237.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15302,
    "c": 0.0854,
    "h": 267.6
  },
  "luminance": 0.00305
}

Semantic roles & 50–950 ramp

primary
#02042F
secondary
#747019
accent
#F529FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #02042F

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

Preview Lab → · Contrast checker → · Palette generator →

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