#121572#121572

#121572 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.152 H 269.9°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#121572
RGBrgb(18, 21, 114)
HSLhsl(238, 73%, 26%)
HSVhsv(238, 84%, 45%)
CMYKcmyk(84.2%, 81.6%, 0%, 55.3%)
CIE-LABlab(14.84, 34.26, -52.57)
CIE-LCHlch(14.84, 62.74, 303.09°)
OKLaboklab(28.05% -0.0003 -0.1522)
OKLCHoklch(28.05% 0.152 269.9)
XYZxyz(3.5538, 1.8794, 16.0918)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121572 #726F12
analogous
#124572 #121572 #3F1272
triadic
#121572 #721215 #157212
tetradic
#121572 #721245 #726F12 #12723F
square
#121572 #721245 #726F12 #12723F
split-complementary
#121572 #723F12 #457212
monochromatic
#04051A #0A0B3D #121572 #1A1FA7 #2328DC

Accessibility & contrast

On white

15.26
#121572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#121572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121572
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121572#FFFFFF#000000##FFFFFF
##1215721.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121572;
/* rgb */ color: rgb(18, 21, 114);
/* oklch */ color: oklch(28.1% 0.152 269.9);
Tailwind
colors: {
  custom: {
    50: '#65549c',
    500: '#121572',
    950: '#000000',
  },
}
SCSS
$custom: #121572;
$custom-light: #65549c;
$custom-dark: #000000;
JSON
{
  "hex": "#121572",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 238.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28052,
    "c": 0.15225,
    "h": 269.9
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#121572
secondary
#A9A537
accent
#EA38EF
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121572

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

Preview Lab → · Contrast checker → · Palette generator →

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