#122171#122171

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

Color values

HEX#122171
RGBrgb(18, 33, 113)
HSLhsl(231, 73%, 26%)
HSVhsv(231, 84%, 44%)
CMYKcmyk(84.1%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.50, 26.18, -47.53)
CIE-LCHlch(17.50, 54.26, 298.84°)
OKLaboklab(29.92% -0.005 -0.1377)
OKLCHoklch(29.92% 0.138 267.9)
XYZxyz(3.7729, 2.4081, 15.8855)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122171 #716212
analogous
#125071 #122171 #321271
triadic
#122171 #711221 #217112
tetradic
#122171 #711250 #716212 #127132
square
#122171 #711250 #716212 #127132
split-complementary
#122171 #713212 #507112
monochromatic
#04081A #0A123C #122171 #1A30A6 #2340DB

Accessibility & contrast

On white

14.17
#122171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122171
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122171#FFFFFF#000000##FFFFFF
##1221711.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122171;
/* rgb */ color: rgb(18, 33, 113);
/* oklch */ color: oklch(29.9% 0.138 267.9);
Tailwind
colors: {
  custom: {
    50: '#635c9b',
    500: '#122171',
    950: '#000000',
  },
}
SCSS
$custom: #122171;
$custom-light: #635c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122171",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 230.526,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29921,
    "c": 0.13777,
    "h": 267.9
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#122171
secondary
#A89637
accent
#D239EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122171

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

Preview Lab → · Contrast checker → · Palette generator →

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