#02052E#02052E

#02052E is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.082 H 267.4°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#02052E
RGBrgb(2, 5, 46)
HSLhsl(236, 92%, 9%)
HSVhsv(236, 96%, 18%)
CMYKcmyk(95.7%, 89.1%, 0%, 82%)
CIE-LABlab(2.88, 11.04, -25.16)
CIE-LCHlch(2.88, 27.47, 293.69°)
OKLaboklab(15.44% -0.0038 -0.082)
OKLCHoklch(15.44% 0.082 267.4)
XYZxyz(0.5723, 0.3186, 2.6156)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02052E #2E2B02
analogous
#021B2E #02052E #15022E
triadic
#02052E #2E0205 #052E02
tetradic
#02052E #2E021B #2E2B02 #022E15
square
#02052E #2E021B #2E2B02 #022E15
split-complementary
#02052E #2E1502 #1B2E02
monochromatic
#01031D #01031D #02052E #050B69 #0712A3

Accessibility & contrast

On white

19.74
#02052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02052E
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02052E#FFFFFF#000000##FFFFFF
##02052E1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02052e;
/* rgb */ color: rgb(2, 5, 46);
/* oklch */ color: oklch(15.4% 0.082 267.4);
Tailwind
colors: {
  custom: {
    50: '#494967',
    500: '#02052e',
    950: '#000000',
  },
}
SCSS
$custom: #02052e;
$custom-light: #494967;
$custom-dark: #000000;
JSON
{
  "hex": "#02052e",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 235.909,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15436,
    "c": 0.08207,
    "h": 267.4
  },
  "luminance": 0.00319
}

Semantic roles & 50–950 ramp

primary
#02052E
secondary
#736D19
accent
#F029FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #02052E

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

Preview Lab → · Contrast checker → · Palette generator →

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