#102171#102171

#102171 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.138 H 267.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#102171
RGBrgb(16, 33, 113)
HSLhsl(229, 75%, 25%)
HSVhsv(229, 86%, 44%)
CMYKcmyk(85.8%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.41, 26.00, -47.68)
CIE-LCHlch(17.41, 54.31, 298.61°)
OKLaboklab(29.84% -0.0068 -0.1381)
OKLCHoklch(29.84% 0.138 267.2)
XYZxyz(3.7371, 2.3897, 15.8839)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#102171 #716010
analogous
#105171 #102171 #301071
triadic
#102171 #711021 #217110
tetradic
#102171 #711051 #716010 #107130
square
#102171 #711051 #716010 #107130
split-complementary
#102171 #713010 #517110
monochromatic
#04081B #08113B #102171 #1831A7 #1F40DC

Accessibility & contrast

On white

14.21
#102171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#102171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #102171
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##102171#FFFFFF#000000##FFFFFF
##1021711.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #102171;
/* rgb */ color: rgb(16, 33, 113);
/* oklch */ color: oklch(29.8% 0.138 267.2);
Tailwind
colors: {
  custom: {
    50: '#635c9b',
    500: '#102171',
    950: '#000000',
  },
}
SCSS
$custom: #102171;
$custom-light: #635c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#102171",
  "rgb": {
    "r": 16,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 229.485,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29835,
    "c": 0.1383,
    "h": 267.2
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#102171
secondary
#A99434
accent
#D136F2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #102171

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

Preview Lab → · Contrast checker → · Palette generator →

#102171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva