#122A5E#122A5E

#122A5E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.098 H 263.1°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#122A5E
RGBrgb(18, 42, 94)
HSLhsl(221, 68%, 22%)
HSVhsv(221, 81%, 37%)
CMYKcmyk(80.9%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.33, 11.72, -33.74)
CIE-LCHlch(18.33, 35.72, 289.16°)
OKLaboklab(30% -0.0117 -0.0971)
OKLCHoklch(30% 0.098 263.1)
XYZxyz(3.0971, 2.5923, 10.9246)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A5E #5E4612
analogous
#12505E #122A5E #20125E
triadic
#122A5E #5E122A #2A5E12
tetradic
#122A5E #5E1250 #5E4612 #125E20
square
#122A5E #5E1250 #5E4612 #125E20
split-complementary
#122A5E #5E2012 #505E12
monochromatic
#050B1A #08132B #122A5E #1C4191 #2658C5

Accessibility & contrast

On white

13.83
#122A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#122A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A5E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A5E#FFFFFF#000000##FFFFFF
##122A5E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083060
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122a5e;
/* rgb */ color: rgb(18, 42, 94);
/* oklch */ color: oklch(30.0% 0.098 263.1);
Tailwind
colors: {
  custom: {
    50: '#5d638c',
    500: '#122a5e',
    950: '#000000',
  },
}
SCSS
$custom: #122a5e;
$custom-light: #5d638c;
$custom-dark: #000000;
JSON
{
  "hex": "#122a5e",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 221.053,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30002,
    "c": 0.09781,
    "h": 263.1
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#122A5E
secondary
#967835
accent
#B43DEB
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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