#122858#122858

#122858 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.091 H 263.3°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#122858
RGBrgb(18, 40, 88)
HSLhsl(221, 66%, 21%)
HSVhsv(221, 80%, 35%)
CMYKcmyk(79.5%, 54.5%, 0%, 65.5%)
CIE-LABlab(17.23, 10.63, -31.53)
CIE-LCHlch(17.23, 33.28, 288.62°)
OKLaboklab(29.01% -0.0106 -0.0906)
OKLCHoklch(29.01% 0.091 263.3)
XYZxyz(2.7691, 2.3505, 9.5384)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122858 #584212
analogous
#124B58 #122858 #1F1258
triadic
#122858 #581228 #285812
tetradic
#122858 #58124B #584212 #12581F
square
#122858 #58124B #584212 #12581F
split-complementary
#122858 #581F12 #4B5812
monochromatic
#050C19 #081125 #122858 #1C3F8B #2756BE

Accessibility & contrast

On white

14.28
#122858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122858
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122858#FFFFFF#000000##FFFFFF
##1228581.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122858;
/* rgb */ color: rgb(18, 40, 88);
/* oklch */ color: oklch(29.0% 0.091 263.3);
Tailwind
colors: {
  custom: {
    50: '#5b6187',
    500: '#122858',
    950: '#000000',
  },
}
SCSS
$custom: #122858;
$custom-light: #5b6187;
$custom-dark: #000000;
JSON
{
  "hex": "#122858",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 221.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29012,
    "c": 0.09127,
    "h": 263.3
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #122858

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

Preview Lab → · Contrast checker → · Palette generator →

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