#02102F#02102F

#02102F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.3% C 0.066 H 260.8°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#02102F
RGBrgb(2, 16, 47)
HSLhsl(221, 92%, 10%)
HSVhsv(221, 96%, 18%)
CMYKcmyk(95.7%, 66%, 0%, 81.6%)
CIE-LABlab(5.32, 6.71, -22.03)
CIE-LCHlch(5.32, 23.03, 286.94°)
OKLaboklab(18.33% -0.0106 -0.0655)
OKLCHoklch(18.33% 0.066 260.8)
XYZxyz(0.7232, 0.5886, 2.7643)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02102F #2F2102
analogous
#02272F #02102F #0A022F
triadic
#02102F #2F0210 #102F02
tetradic
#02102F #2F0227 #2F2102 #022F0A
square
#02102F #2F0227 #2F2102 #022F0A
split-complementary
#02102F #2F0A02 #272F02
monochromatic
#010A1D #010A1D #02102F #04246A #0738A4

Accessibility & contrast

On white

18.79
#02102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#02102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02102F
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02102F#FFFFFF#000000##FFFFFF
##02102F1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #02102f;
/* rgb */ color: rgb(2, 16, 47);
/* oklch */ color: oklch(18.3% 0.066 260.8);
Tailwind
colors: {
  custom: {
    50: '#4a4e68',
    500: '#02102f',
    950: '#000000',
  },
}
SCSS
$custom: #02102f;
$custom-light: #4a4e68;
$custom-dark: #000000;
JSON
{
  "hex": "#02102f",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 221.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18331,
    "c": 0.06631,
    "h": 260.8
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#02102F
secondary
#745719
accent
#BC29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #02102F

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

Preview Lab → · Contrast checker → · Palette generator →

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