#122A58#122A58

#122A58 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.088 H 261.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#122A58
RGBrgb(18, 42, 88)
HSLhsl(219, 66%, 21%)
HSVhsv(219, 80%, 35%)
CMYKcmyk(79.5%, 52.3%, 0%, 65.5%)
CIE-LABlab(17.87, 9.14, -30.50)
CIE-LCHlch(17.87, 31.84, 286.68°)
OKLaboklab(29.5% -0.0125 -0.0876)
OKLCHoklch(29.5% 0.088 261.8)
XYZxyz(2.8382, 2.4888, 9.5614)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A58 #584012
analogous
#124D58 #122A58 #1D1258
triadic
#122A58 #58122A #2A5812
tetradic
#122A58 #58124D #584012 #12581D
square
#122A58 #58124D #584012 #12581D
split-complementary
#122A58 #581D12 #4D5812
monochromatic
#050C19 #081225 #122A58 #1C428B #275ABE

Accessibility & contrast

On white

14.02
#122A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#122A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A58
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A58#FFFFFF#000000##FFFFFF
##122A581.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102F5A
Deuteranopia (green-blind)
#002957
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122a58;
/* rgb */ color: rgb(18, 42, 88);
/* oklch */ color: oklch(29.5% 0.088 261.8);
Tailwind
colors: {
  custom: {
    50: '#5b6387',
    500: '#122a58',
    950: '#000000',
  },
}
SCSS
$custom: #122a58;
$custom-light: #5b6387;
$custom-dark: #000000;
JSON
{
  "hex": "#122a58",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 88
  },
  "hsl": {
    "h": 219.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29501,
    "c": 0.08847,
    "h": 261.8
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#122A58
secondary
#917135
accent
#AF3FE9
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122A58

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

Preview Lab → · Contrast checker → · Palette generator →

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