#122E7E#122E7E

#122E7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.140 H 264.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#122E7E
RGBrgb(18, 46, 126)
HSLhsl(224, 75%, 28%)
HSVhsv(224, 86%, 49%)
CMYKcmyk(85.7%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.26, 22.32, -48.03)
CIE-LCHlch(22.26, 52.96, 294.92°)
OKLaboklab(33.82% -0.0125 -0.139)
OKLCHoklch(33.82% 0.14 264.8)
XYZxyz(4.9910, 3.5883, 20.1642)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122E7E #7E6212
analogous
#12647E #122E7E #2C127E
triadic
#122E7E #7E122E #2E7E12
tetradic
#122E7E #7E1264 #7E6212 #127E2C
square
#122E7E #7E1264 #7E6212 #127E2C
split-complementary
#122E7E #7E2C12 #647E12
monochromatic
#040A1B #0A1A48 #122E7E #1A42B4 #2A59E1

Accessibility & contrast

On white

12.22
#122E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#122E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122E7E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122E7E#FFFFFF#000000##FFFFFF
##122E7E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #122e7e;
/* rgb */ color: rgb(18, 46, 126);
/* oklch */ color: oklch(33.8% 0.140 264.8);
Tailwind
colors: {
  custom: {
    50: '#6666a4',
    500: '#122e7e',
    950: '#000000',
  },
}
SCSS
$custom: #122e7e;
$custom-light: #6666a4;
$custom-dark: #000000;
JSON
{
  "hex": "#122e7e",
  "rgb": {
    "r": 18,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 224.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33819,
    "c": 0.13957,
    "h": 264.8
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#122E7E
secondary
#B49438
accent
#C136F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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