#02023B#02023B

#02023B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.105 H 266.9°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#02023B
RGBrgb(2, 2, 59)
HSLhsl(240, 93%, 12%)
HSVhsv(240, 97%, 23%)
CMYKcmyk(96.6%, 96.6%, 0%, 76.9%)
CIE-LABlab(3.36, 19.76, -34.01)
CIE-LCHlch(3.36, 39.33, 300.16°)
OKLaboklab(16.63% -0.0057 -0.1053)
OKLCHoklch(16.63% 0.105 266.9)
XYZxyz(0.8359, 0.3720, 4.1646)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02023B #3B3B02
analogous
#021F3B #02023B #1F023B
triadic
#02023B #3B0202 #023B02
tetradic
#02023B #3B021F #3B3B02 #023B1F
square
#02023B #3B021F #3B3B02 #023B1F
split-complementary
#02023B #3B1F02 #1F3B02
monochromatic
#01011E #01011E #02023B #040476 #0606B1

Accessibility & contrast

On white

19.55
#02023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#02023B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02023B
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02023B#FFFFFF#000000##FFFFFF
##02023B1.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F3D
Deuteranopia (green-blind)
#00093A
Tritanopia (blue-blind)
#00141F
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #02023b;
/* rgb */ color: rgb(2, 2, 59);
/* oklch */ color: oklch(16.6% 0.105 266.9);
Tailwind
colors: {
  custom: {
    50: '#4e4672',
    500: '#02023b',
    950: '#000000',
  },
}
SCSS
$custom: #02023b;
$custom-light: #4e4672;
$custom-dark: #000000;
JSON
{
  "hex": "#02023b",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 240,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.16635,
    "c": 0.10544,
    "h": 266.9
  },
  "luminance": 0.00372
}

Semantic roles & 50–950 ramp

primary
#02023B
secondary
#7E7E1A
accent
#FF29FF
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020008
muted
#78777B

Preview Lab

Preview with #02023B

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

Preview Lab → · Contrast checker → · Palette generator →

#02023B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva