#122B81#122B81

#122B81 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.148 H 265.8°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#122B81
RGBrgb(18, 43, 129)
HSLhsl(226, 76%, 29%)
HSVhsv(226, 86%, 51%)
CMYKcmyk(86%, 66.7%, 0%, 49.4%)
CIE-LABlab(21.73, 25.65, -50.80)
CIE-LCHlch(21.73, 56.91, 296.79°)
OKLaboklab(33.51% -0.0109 -0.1471)
OKLCHoklch(33.51% 0.148 265.8)
XYZxyz(5.0744, 3.4407, 21.1613)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122B81 #816812
analogous
#126381 #122B81 #301281
triadic
#122B81 #81122B #2B8112
tetradic
#122B81 #811263 #816812 #128130
square
#122B81 #811263 #816812 #128130
split-complementary
#122B81 #813012 #638112
monochromatic
#04091B #0B194B #122B81 #193DB7 #2C55E2

Accessibility & contrast

On white

12.44
#122B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#122B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122B81
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122B81#FFFFFF#000000##FFFFFF
##122B811.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #122b81;
/* rgb */ color: rgb(18, 43, 129);
/* oklch */ color: oklch(33.5% 0.148 265.8);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#122b81',
    950: '#000000',
  },
}
SCSS
$custom: #122b81;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#122b81",
  "rgb": {
    "r": 18,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 226.486,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.14754,
    "h": 265.8
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#122B81
secondary
#B79A38
accent
#C836F2
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #122B81

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

Preview Lab → · Contrast checker → · Palette generator →

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