#122C81#122C81

#122C81 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.146 H 265.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#122C81
RGBrgb(18, 44, 129)
HSLhsl(226, 76%, 29%)
HSVhsv(226, 86%, 51%)
CMYKcmyk(86%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.00, 24.95, -50.36)
CIE-LCHlch(22.00, 56.20, 296.36°)
OKLaboklab(33.71% -0.0114 -0.1458)
OKLCHoklch(33.71% 0.146 265.5)
XYZxyz(5.1112, 3.5143, 21.1736)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C81 #816712
analogous
#126481 #122C81 #301281
triadic
#122C81 #81122C #2C8112
tetradic
#122C81 #811264 #816712 #128130
square
#122C81 #811264 #816712 #128130
split-complementary
#122C81 #813012 #648112
monochromatic
#04091B #0B1A4B #122C81 #193EB7 #2C56E2

Accessibility & contrast

On white

12.33
#122C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#122C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122C81
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C81#FFFFFF#000000##FFFFFF
##122C811.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #122c81;
/* rgb */ color: rgb(18, 44, 129);
/* oklch */ color: oklch(33.7% 0.146 265.5);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#122c81',
    950: '#000000',
  },
}
SCSS
$custom: #122c81;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#122c81",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 225.946,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33709,
    "c": 0.1463,
    "h": 265.5
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#122C81
secondary
#B79938
accent
#C636F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122C81

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

Preview Lab → · Contrast checker → · Palette generator →

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