#122872#122872

#122872 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.130 H 266.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#122872
RGBrgb(18, 40, 114)
HSLhsl(226, 73%, 26%)
HSVhsv(226, 84%, 45%)
CMYKcmyk(84.2%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.48, 21.64, -44.93)
CIE-LCHlch(19.48, 49.87, 295.72°)
OKLaboklab(31.41% -0.009 -0.13)
OKLCHoklch(31.41% 0.13 266)
XYZxyz(4.0444, 2.8606, 16.2553)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122872 #725C12
analogous
#125872 #122872 #2C1272
triadic
#122872 #721228 #287212
tetradic
#122872 #721258 #725C12 #12722C
square
#122872 #721258 #725C12 #12722C
split-complementary
#122872 #722C12 #587212
monochromatic
#04091A #0A153D #122872 #1A3BA7 #234DDC

Accessibility & contrast

On white

13.36
#122872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122872
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122872#FFFFFF#000000##FFFFFF
##1228721.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122872;
/* rgb */ color: rgb(18, 40, 114);
/* oklch */ color: oklch(31.4% 0.130 266.0);
Tailwind
colors: {
  custom: {
    50: '#63619b',
    500: '#122872',
    950: '#000000',
  },
}
SCSS
$custom: #122872;
$custom-light: #63619b;
$custom-dark: #000000;
JSON
{
  "hex": "#122872",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 226.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31406,
    "c": 0.13032,
    "h": 266
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#122872
secondary
#A98F37
accent
#C538EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122872

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

Preview Lab → · Contrast checker → · Palette generator →

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