#122857#122857

#122857 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.090 H 263.1°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#122857
RGBrgb(18, 40, 87)
HSLhsl(221, 66%, 21%)
HSVhsv(221, 79%, 34%)
CMYKcmyk(79.3%, 54%, 0%, 65.9%)
CIE-LABlab(17.15, 10.19, -30.99)
CIE-LCHlch(17.15, 32.62, 288.21°)
OKLaboklab(28.93% -0.0108 -0.089)
OKLCHoklch(28.93% 0.09 263.1)
XYZxyz(2.7279, 2.3340, 9.3217)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122857 #574112
analogous
#124A57 #122857 #1F1257
triadic
#122857 #571228 #285712
tetradic
#122857 #57124A #574112 #12571F
square
#122857 #57124A #574112 #12571F
split-complementary
#122857 #571F12 #4A5712
monochromatic
#050C19 #081124 #122857 #1C3F8A #2757BC

Accessibility & contrast

On white

14.32
#122857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#122857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122857
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122857#FFFFFF#000000##FFFFFF
##1228571.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122857;
/* rgb */ color: rgb(18, 40, 87);
/* oklch */ color: oklch(28.9% 0.090 263.1);
Tailwind
colors: {
  custom: {
    50: '#5b6187',
    500: '#122857',
    950: '#000000',
  },
}
SCSS
$custom: #122857;
$custom-light: #5b6187;
$custom-dark: #000000;
JSON
{
  "hex": "#122857",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 220.87,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28928,
    "c": 0.0897,
    "h": 263.1
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#122857
secondary
#907335
accent
#B33FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122857

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

Preview Lab → · Contrast checker → · Palette generator →

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