#122B7E#122B7E

#122B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.143 H 265.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#122B7E
RGBrgb(18, 43, 126)
HSLhsl(226, 75%, 28%)
HSVhsv(226, 86%, 49%)
CMYKcmyk(85.7%, 65.9%, 0%, 50.6%)
CIE-LABlab(21.44, 24.43, -49.38)
CIE-LCHlch(21.44, 55.09, 296.33°)
OKLaboklab(33.21% -0.0108 -0.143)
OKLCHoklch(33.21% 0.143 265.7)
XYZxyz(4.8779, 3.3621, 20.1265)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122B7E #7E6512
analogous
#12617E #122B7E #2F127E
triadic
#122B7E #7E122B #2B7E12
tetradic
#122B7E #7E1261 #7E6512 #127E2F
square
#122B7E #7E1261 #7E6512 #127E2F
split-complementary
#122B7E #7E2F12 #617E12
monochromatic
#04091B #0A1948 #122B7E #1A3DB4 #2A54E1

Accessibility & contrast

On white

12.56
#122B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#122B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122B7E
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122B7E#FFFFFF#000000##FFFFFF
##122B7E1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #122b7e;
/* rgb */ color: rgb(18, 43, 126);
/* oklch */ color: oklch(33.2% 0.143 265.7);
Tailwind
colors: {
  custom: {
    50: '#6664a4',
    500: '#122b7e',
    950: '#000000',
  },
}
SCSS
$custom: #122b7e;
$custom-light: #6664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#122b7e",
  "rgb": {
    "r": 18,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 226.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3321,
    "c": 0.1434,
    "h": 265.7
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#122B7E
secondary
#B49738
accent
#C636F2
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #122B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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