#02102E#02102E

#02102E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.2% C 0.065 H 260.5°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#02102E
RGBrgb(2, 16, 46)
HSLhsl(221, 92%, 9%)
HSVhsv(221, 96%, 18%)
CMYKcmyk(95.7%, 65.2%, 0%, 82%)
CIE-LABlab(5.25, 6.20, -21.40)
CIE-LCHlch(5.25, 22.28, 286.16°)
OKLaboklab(18.23% -0.0107 -0.0637)
OKLCHoklch(18.23% 0.065 260.5)
XYZxyz(0.7033, 0.5807, 2.6592)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02102E #2E2002
analogous
#02262E #02102E #0A022E
triadic
#02102E #2E0210 #102E02
tetradic
#02102E #2E0226 #2E2002 #022E0A
square
#02102E #2E0226 #2E2002 #022E0A
split-complementary
#02102E #2E0A02 #262E02
monochromatic
#010A1D #010A1D #02102E #052469 #0739A3

Accessibility & contrast

On white

18.81
#02102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02102E
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02102E#FFFFFF#000000##FFFFFF
##02102E1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00142F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #02102e;
/* rgb */ color: rgb(2, 16, 46);
/* oklch */ color: oklch(18.2% 0.065 260.5);
Tailwind
colors: {
  custom: {
    50: '#494e67',
    500: '#02102e',
    950: '#000000',
  },
}
SCSS
$custom: #02102e;
$custom-light: #494e67;
$custom-dark: #000000;
JSON
{
  "hex": "#02102e",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 220.909,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18228,
    "c": 0.06462,
    "h": 260.5
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#02102E
secondary
#735619
accent
#BB29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #02102E

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

Preview Lab → · Contrast checker → · Palette generator →

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