#102A8D#102A8D

#102A8D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.165 H 265.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#102A8D
RGBrgb(16, 42, 141)
HSLhsl(228, 80%, 31%)
HSVhsv(228, 89%, 55%)
CMYKcmyk(88.7%, 70.2%, 0%, 44.7%)
CIE-LABlab(22.61, 30.95, -56.86)
CIE-LCHlch(22.61, 64.74, 298.56°)
OKLaboklab(34.51% -0.0124 -0.1649)
OKLCHoklch(34.51% 0.165 265.7)
XYZxyz(5.8477, 3.6884, 25.5979)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#102A8D #8D7310
analogous
#10688D #102A8D #34108D
triadic
#102A8D #8D102A #2A8D10
tetradic
#102A8D #8D1068 #8D7310 #108D34
square
#102A8D #8D1068 #8D7310 #108D34
split-complementary
#102A8D #8D3410 #688D10
monochromatic
#04091F #0A1A56 #102A8D #163AC4 #3056E7

Accessibility & contrast

On white

12.08
#102A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#102A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #102A8D
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##102A8D#FFFFFF#000000##FFFFFF
##102A8D1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #102a8d;
/* rgb */ color: rgb(16, 42, 141);
/* oklch */ color: oklch(34.5% 0.165 265.7);
Tailwind
colors: {
  custom: {
    50: '#6a63af',
    500: '#102a8d',
    950: '#000000',
  },
}
SCSS
$custom: #102a8d;
$custom-light: #6a63af;
$custom-dark: #000000;
JSON
{
  "hex": "#102a8d",
  "rgb": {
    "r": 16,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 227.52,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34507,
    "c": 0.16533,
    "h": 265.7
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#102A8D
secondary
#C2A537
accent
#CD32F6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #102A8D

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

Preview Lab → · Contrast checker → · Palette generator →

#102A8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva