#121571#121571

#121571 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.151 H 270.0°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#121571
RGBrgb(18, 21, 113)
HSLhsl(238, 73%, 26%)
HSVhsv(238, 84%, 44%)
CMYKcmyk(84.1%, 81.4%, 0%, 55.7%)
CIE-LABlab(14.72, 33.90, -52.12)
CIE-LCHlch(14.72, 62.18, 303.04°)
OKLaboklab(27.93% -0.0001 -0.151)
OKLCHoklch(27.93% 0.151 270)
XYZxyz(3.4972, 1.8568, 15.7937)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121571 #716E12
analogous
#124471 #121571 #3E1271
triadic
#121571 #711215 #157112
tetradic
#121571 #711244 #716E12 #12713E
square
#121571 #711244 #716E12 #12713E
split-complementary
#121571 #713E12 #447112
monochromatic
#04051A #0A0B3C #121571 #1A1FA6 #2329DB

Accessibility & contrast

On white

15.31
#121571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#121571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121571
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121571#FFFFFF#000000##FFFFFF
##1215711.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121571;
/* rgb */ color: rgb(18, 21, 113);
/* oklch */ color: oklch(27.9% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#64549b',
    500: '#121571',
    950: '#000000',
  },
}
SCSS
$custom: #121571;
$custom-light: #64549b;
$custom-dark: #000000;
JSON
{
  "hex": "#121571",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 238.105,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27929,
    "c": 0.15097,
    "h": 270
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#121571
secondary
#A8A437
accent
#E939EF
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121571

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

Preview Lab → · Contrast checker → · Palette generator →

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