#02052F#02052F

#02052F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.6% C 0.084 H 267.3°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#02052F
RGBrgb(2, 5, 47)
HSLhsl(236, 92%, 10%)
HSVhsv(236, 96%, 18%)
CMYKcmyk(95.7%, 89.4%, 0%, 81.6%)
CIE-LABlab(2.95, 11.54, -25.80)
CIE-LCHlch(2.95, 28.26, 294.11°)
OKLaboklab(15.58% -0.004 -0.0835)
OKLCHoklch(15.58% 0.084 267.3)
XYZxyz(0.5922, 0.3266, 2.7206)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02052F #2F2C02
analogous
#021C2F #02052F #16022F
triadic
#02052F #2F0205 #052F02
tetradic
#02052F #2F021C #2F2C02 #022F16
square
#02052F #2F021C #2F2C02 #022F16
split-complementary
#02052F #2F1602 #1C2F02
monochromatic
#01031D #01031D #02052F #040B6A #0711A4

Accessibility & contrast

On white

19.71
#02052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#02052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02052F
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02052F#FFFFFF#000000##FFFFFF
##02052F1.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D30
Deuteranopia (green-blind)
#00082E
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #02052f;
/* rgb */ color: rgb(2, 5, 47);
/* oklch */ color: oklch(15.6% 0.084 267.3);
Tailwind
colors: {
  custom: {
    50: '#494968',
    500: '#02052f',
    950: '#000000',
  },
}
SCSS
$custom: #02052f;
$custom-light: #494968;
$custom-dark: #000000;
JSON
{
  "hex": "#02052f",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 236,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15578,
    "c": 0.08357,
    "h": 267.3
  },
  "luminance": 0.00327
}

Semantic roles & 50–950 ramp

primary
#02052F
secondary
#746E19
accent
#F129FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #02052F

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

Preview Lab → · Contrast checker → · Palette generator →

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