#02102B#02102B

#02102B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 17.9% C 0.059 H 259.2°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#02102B
RGBrgb(2, 16, 43)
HSLhsl(220, 91%, 9%)
HSVhsv(220, 95%, 17%)
CMYKcmyk(95.3%, 62.8%, 0%, 83.1%)
CIE-LABlab(5.04, 4.75, -19.48)
CIE-LCHlch(5.04, 20.05, 283.71°)
OKLaboklab(17.93% -0.0111 -0.0584)
OKLCHoklch(17.93% 0.059 259.2)
XYZxyz(0.6462, 0.5578, 2.3586)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02102B #2B1D02
analogous
#02252B #02102B #09022B
triadic
#02102B #2B0210 #102B02
tetradic
#02102B #2B0225 #2B1D02 #022B09
square
#02102B #2B0225 #2B1D02 #022B09
split-complementary
#02102B #2B0902 #252B02
monochromatic
#010B1D #010B1D #02102B #052665 #073CA0

Accessibility & contrast

On white

18.89
#02102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#02102B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02102B
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02102B#FFFFFF#000000##FFFFFF
##02102B1.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132C
Deuteranopia (green-blind)
#000F2A
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #02102b;
/* rgb */ color: rgb(2, 16, 43);
/* oklch */ color: oklch(17.9% 0.059 259.2);
Tailwind
colors: {
  custom: {
    50: '#484e64',
    500: '#02102b',
    950: '#000000',
  },
}
SCSS
$custom: #02102b;
$custom-light: #484e64;
$custom-dark: #000000;
JSON
{
  "hex": "#02102b",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 219.512,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17929,
    "c": 0.05949,
    "h": 259.2
  },
  "luminance": 0.00558
}

Semantic roles & 50–950 ramp

primary
#02102B
secondary
#705219
accent
#B629FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #02102B

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

Preview Lab → · Contrast checker → · Palette generator →

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