#02102C#02102C

#02102C is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.0% C 0.061 H 259.7°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#02102C
RGBrgb(2, 16, 44)
HSLhsl(220, 91%, 9%)
HSVhsv(220, 95%, 17%)
CMYKcmyk(95.5%, 63.6%, 0%, 82.7%)
CIE-LABlab(5.11, 5.22, -20.12)
CIE-LCHlch(5.11, 20.79, 284.55°)
OKLaboklab(18.03% -0.011 -0.0602)
OKLCHoklch(18.03% 0.061 259.7)
XYZxyz(0.6648, 0.5653, 2.4565)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02102C #2C1E02
analogous
#02252C #02102C #09022C
triadic
#02102C #2C0210 #102C02
tetradic
#02102C #2C0225 #2C1E02 #022C09
square
#02102C #2C0225 #2C1E02 #022C09
split-complementary
#02102C #2C0902 #252C02
monochromatic
#010B1D #010B1D #02102C #052567 #073BA1

Accessibility & contrast

On white

18.87
#02102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02102C
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02102C#FFFFFF#000000##FFFFFF
##02102C1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #02102c;
/* rgb */ color: rgb(2, 16, 44);
/* oklch */ color: oklch(18.0% 0.061 259.7);
Tailwind
colors: {
  custom: {
    50: '#494e65',
    500: '#02102c',
    950: '#000000',
  },
}
SCSS
$custom: #02102c;
$custom-light: #494e65;
$custom-dark: #000000;
JSON
{
  "hex": "#02102c",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 220,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18028,
    "c": 0.06121,
    "h": 259.7
  },
  "luminance": 0.00565
}

Semantic roles & 50–950 ramp

primary
#02102C
secondary
#715419
accent
#B829FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #02102C

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

Preview Lab → · Contrast checker → · Palette generator →

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