#122E5B#122E5B

#122E5B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.088 H 259.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#122E5B
RGBrgb(18, 46, 91)
HSLhsl(217, 67%, 21%)
HSVhsv(217, 80%, 36%)
CMYKcmyk(80.2%, 49.5%, 0%, 64.3%)
CIE-LABlab(19.38, 7.49, -30.06)
CIE-LCHlch(19.38, 30.98, 283.98°)
OKLaboklab(30.73% -0.0159 -0.0862)
OKLCHoklch(30.73% 0.088 259.5)
XYZxyz(3.1141, 2.8376, 10.2791)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122E5B #5B3F12
analogous
#12535B #122E5B #1B125B
triadic
#122E5B #5B122E #2E5B12
tetradic
#122E5B #5B1253 #5B3F12 #125B1B
square
#122E5B #5B1253 #5B3F12 #125B1B
split-complementary
#122E5B #5B1B12 #535B12
monochromatic
#050D1A #081428 #122E5B #1C488E #2662C1

Accessibility & contrast

On white

13.40
#122E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#122E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##122E5B#FFFFFF#000000##FFFFFF
##122E5B1.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)
#16335D
Deuteranopia (green-blind)
#062C5A
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122e5b;
/* rgb */ color: rgb(18, 46, 91);
/* oklch */ color: oklch(30.7% 0.088 259.5);
Tailwind
colors: {
  custom: {
    50: '#5c668a',
    500: '#122e5b',
    950: '#000000',
  },
}
SCSS
$custom: #122e5b;
$custom-light: #5c668a;
$custom-dark: #000000;
JSON
{
  "hex": "#122e5b",
  "rgb": {
    "r": 18,
    "g": 46,
    "b": 91
  },
  "hsl": {
    "h": 216.986,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30734,
    "c": 0.08766,
    "h": 259.5
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#122E5B
secondary
#936F35
accent
#A83EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04050B
muted
#797A7C

Preview Lab

Preview with #122E5B

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

Preview Lab → · Contrast checker → · Palette generator →

#122E5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva