#02052A#02052A

#02052A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.9% C 0.076 H 267.6°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#02052A
RGBrgb(2, 5, 42)
HSLhsl(236, 91%, 9%)
HSVhsv(236, 95%, 16%)
CMYKcmyk(95.2%, 88.1%, 0%, 83.5%)
CIE-LABlab(2.61, 9.13, -22.55)
CIE-LCHlch(2.61, 24.33, 292.03°)
OKLaboklab(14.88% -0.0032 -0.0758)
OKLCHoklch(14.88% 0.076 267.6)
XYZxyz(0.4971, 0.2886, 2.2195)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02052A #2A2702
analogous
#02192A #02052A #13022A
triadic
#02052A #2A0205 #052A02
tetradic
#02052A #2A0219 #2A2702 #022A13
square
#02052A #2A0219 #2A2702 #022A13
split-complementary
#02052A #2A1302 #192A02
monochromatic
#01031D #01031D #02052A #050C64 #08139F

Accessibility & contrast

On white

19.85
#02052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02052A
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02052A#FFFFFF#000000##FFFFFF
##02052A1.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2B
Deuteranopia (green-blind)
#000829
Tritanopia (blue-blind)
#000F16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #02052a;
/* rgb */ color: rgb(2, 5, 42);
/* oklch */ color: oklch(14.9% 0.076 267.6);
Tailwind
colors: {
  custom: {
    50: '#484964',
    500: '#02052a',
    950: '#000000',
  },
}
SCSS
$custom: #02052a;
$custom-light: #484964;
$custom-dark: #000000;
JSON
{
  "hex": "#02052a",
  "rgb": {
    "r": 2,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 235.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.14877,
    "c": 0.0759,
    "h": 267.6
  },
  "luminance": 0.00289
}

Semantic roles & 50–950 ramp

primary
#02052A
secondary
#6F6919
accent
#EF29FF
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #02052A

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

Preview Lab → · Contrast checker → · Palette generator →

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