#02102D#02102D

#02102D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.1% C 0.063 H 260.1°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#02102D
RGBrgb(2, 16, 45)
HSLhsl(220, 91%, 9%)
HSVhsv(220, 96%, 18%)
CMYKcmyk(95.6%, 64.4%, 0%, 82.4%)
CIE-LABlab(5.17, 5.71, -20.76)
CIE-LCHlch(5.17, 21.53, 285.37°)
OKLaboklab(18.13% -0.0108 -0.062)
OKLCHoklch(18.13% 0.063 260.1)
XYZxyz(0.6838, 0.5729, 2.5566)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02102D #2D1F02
analogous
#02262D #02102D #0A022D
triadic
#02102D #2D0210 #102D02
tetradic
#02102D #2D0226 #2D1F02 #022D0A
square
#02102D #2D0226 #2D1F02 #022D0A
split-complementary
#02102D #2D0A02 #262D02
monochromatic
#010A1D #010A1D #02102D #052568 #073AA2

Accessibility & contrast

On white

18.84
#02102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02102D
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02102D#FFFFFF#000000##FFFFFF
##02102D1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #02102d;
/* rgb */ color: rgb(2, 16, 45);
/* oklch */ color: oklch(18.1% 0.063 260.1);
Tailwind
colors: {
  custom: {
    50: '#494e66',
    500: '#02102d',
    950: '#000000',
  },
}
SCSS
$custom: #02102d;
$custom-light: #494e66;
$custom-dark: #000000;
JSON
{
  "hex": "#02102d",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 220.465,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18127,
    "c": 0.06292,
    "h": 260.1
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#02102D
secondary
#725519
accent
#B929FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #02102D

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

Preview Lab → · Contrast checker → · Palette generator →

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