#122A52#122A52

#122A52 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.079 H 260.0°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#122A52
RGBrgb(18, 42, 82)
HSLhsl(218, 64%, 20%)
HSVhsv(218, 78%, 32%)
CMYKcmyk(78%, 48.8%, 0%, 67.8%)
CIE-LABlab(17.43, 6.56, -27.18)
CIE-LCHlch(17.43, 27.96, 283.57°)
OKLaboklab(29.02% -0.0137 -0.0778)
OKLCHoklch(29.02% 0.079 260)
XYZxyz(2.5999, 2.3934, 8.3060)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A52 #523A12
analogous
#124A52 #122A52 #1A1252
triadic
#122A52 #52122A #2A5212
tetradic
#122A52 #52124A #523A12 #12521A
square
#122A52 #52124A #523A12 #12521A
split-complementary
#122A52 #521A12 #4A5212
monochromatic
#060D19 #071020 #122A52 #1D4484 #285DB6

Accessibility & contrast

On white

14.20
#122A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#122A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A52
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A52#FFFFFF#000000##FFFFFF
##122A521.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E54
Deuteranopia (green-blind)
#0A2851
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122a52;
/* rgb */ color: rgb(18, 42, 82);
/* oklch */ color: oklch(29.0% 0.079 260.0);
Tailwind
colors: {
  custom: {
    50: '#5a6383',
    500: '#122a52',
    950: '#000000',
  },
}
SCSS
$custom: #122a52;
$custom-light: #5a6383;
$custom-dark: #000000;
JSON
{
  "hex": "#122a52",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 217.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29023,
    "c": 0.079,
    "h": 260
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#122A52
secondary
#8B6B35
accent
#A941E7
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #122A52

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

Preview Lab → · Contrast checker → · Palette generator →

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