#122871#122871

#122871 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.129 H 266.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#122871
RGBrgb(18, 40, 113)
HSLhsl(226, 73%, 26%)
HSVhsv(226, 84%, 44%)
CMYKcmyk(84.1%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.38, 21.23, -44.44)
CIE-LCHlch(19.38, 49.25, 295.53°)
OKLaboklab(31.31% -0.009 -0.1286)
OKLCHoklch(31.31% 0.129 266)
XYZxyz(3.9878, 2.8380, 15.9572)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122871 #715B12
analogous
#125771 #122871 #2B1271
triadic
#122871 #711228 #287112
tetradic
#122871 #711257 #715B12 #12712B
square
#122871 #711257 #715B12 #12712B
split-complementary
#122871 #712B12 #577112
monochromatic
#04091A #0A153C #122871 #1A3BA6 #234DDB

Accessibility & contrast

On white

13.40
#122871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#122871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122871
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122871#FFFFFF#000000##FFFFFF
##1228711.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122871;
/* rgb */ color: rgb(18, 40, 113);
/* oklch */ color: oklch(31.3% 0.129 266.0);
Tailwind
colors: {
  custom: {
    50: '#62619b',
    500: '#122871',
    950: '#000000',
  },
}
SCSS
$custom: #122871;
$custom-light: #62619b;
$custom-dark: #000000;
JSON
{
  "hex": "#122871",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 226.105,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31308,
    "c": 0.12888,
    "h": 266
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#122871
secondary
#A88E37
accent
#C539EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122871

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

Preview Lab → · Contrast checker → · Palette generator →

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