#122571#122571

#122571 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.133 H 266.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#122571
RGBrgb(18, 37, 113)
HSLhsl(228, 73%, 26%)
HSVhsv(228, 84%, 44%)
CMYKcmyk(84.1%, 67.3%, 0%, 55.7%)
CIE-LABlab(18.56, 23.37, -45.80)
CIE-LCHlch(18.56, 51.41, 297.04°)
OKLaboklab(30.7% -0.0072 -0.1326)
OKLCHoklch(30.7% 0.133 266.9)
XYZxyz(3.8906, 2.6435, 15.9248)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122571 #715E12
analogous
#125471 #122571 #2E1271
triadic
#122571 #711225 #257112
tetradic
#122571 #711254 #715E12 #12712E
square
#122571 #711254 #715E12 #12712E
split-complementary
#122571 #712E12 #547112
monochromatic
#04091A #0A143C #122571 #1A36A6 #2348DB

Accessibility & contrast

On white

13.74
#122571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#122571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122571
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122571#FFFFFF#000000##FFFFFF
##1225711.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122571;
/* rgb */ color: rgb(18, 37, 113);
/* oklch */ color: oklch(30.7% 0.133 266.9);
Tailwind
colors: {
  custom: {
    50: '#635f9b',
    500: '#122571',
    950: '#000000',
  },
}
SCSS
$custom: #122571;
$custom-light: #635f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122571",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 228,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30696,
    "c": 0.13276,
    "h": 266.9
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#122571
secondary
#A89137
accent
#CB39EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122571

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

Preview Lab → · Contrast checker → · Palette generator →

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