#122A5D#122A5D

#122A5D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.096 H 263.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#122A5D
RGBrgb(18, 42, 93)
HSLhsl(221, 68%, 22%)
HSVhsv(221, 81%, 36%)
CMYKcmyk(80.6%, 54.8%, 0%, 63.5%)
CIE-LABlab(18.25, 11.29, -33.21)
CIE-LCHlch(18.25, 35.08, 288.78°)
OKLaboklab(29.92% -0.0118 -0.0955)
OKLCHoklch(29.92% 0.096 263)
XYZxyz(3.0525, 2.5745, 10.6899)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A5D #5D4512
analogous
#12505D #122A5D #20125D
triadic
#122A5D #5D122A #2A5D12
tetradic
#122A5D #5D1250 #5D4512 #125D20
square
#122A5D #5D1250 #5D4512 #125D20
split-complementary
#122A5D #5D2012 #505D12
monochromatic
#050C1A #08132A #122A5D #1C4190 #2658C4

Accessibility & contrast

On white

13.86
#122A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122A5D
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A5D#FFFFFF#000000##FFFFFF
##122A5D1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122a5d;
/* rgb */ color: rgb(18, 42, 93);
/* oklch */ color: oklch(29.9% 0.096 263.0);
Tailwind
colors: {
  custom: {
    50: '#5c638b',
    500: '#122a5d',
    950: '#000000',
  },
}
SCSS
$custom: #122a5d;
$custom-light: #5c638b;
$custom-dark: #000000;
JSON
{
  "hex": "#122a5d",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 93
  },
  "hsl": {
    "h": 220.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29917,
    "c": 0.09627,
    "h": 263
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#122A5D
secondary
#957735
accent
#B33DEA
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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