#122E7D#122E7D

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

Color values

HEX#122E7D
RGBrgb(18, 46, 125)
HSLhsl(224, 75%, 28%)
HSVhsv(224, 86%, 49%)
CMYKcmyk(85.6%, 63.2%, 0%, 51%)
CIE-LABlab(22.17, 21.90, -47.55)
CIE-LCHlch(22.17, 52.35, 294.73°)
OKLaboklab(33.72% -0.0125 -0.1376)
OKLCHoklch(33.72% 0.138 264.8)
XYZxyz(4.9268, 3.5627, 19.8261)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122E7D #7D6112
analogous
#12637D #122E7D #2B127D
triadic
#122E7D #7D122E #2E7D12
tetradic
#122E7D #7D1263 #7D6112 #127D2B
square
#122E7D #7D1263 #7D6112 #127D2B
split-complementary
#122E7D #7D2B12 #637D12
monochromatic
#040A1B #0A1A48 #122E7D #1A42B2 #2959E0

Accessibility & contrast

On white

12.26
#122E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#122E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122E7D
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122E7D#FFFFFF#000000##FFFFFF
##122E7D1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #122e7d;
/* rgb */ color: rgb(18, 46, 125);
/* oklch */ color: oklch(33.7% 0.138 264.8);
Tailwind
colors: {
  custom: {
    50: '#6566a3',
    500: '#122e7d',
    950: '#000000',
  },
}
SCSS
$custom: #122e7d;
$custom-light: #6566a3;
$custom-dark: #000000;
JSON
{
  "hex": "#122e7d",
  "rgb": {
    "r": 18,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 224.299,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33723,
    "c": 0.13816,
    "h": 264.8
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#122E7D
secondary
#B39338
accent
#C036F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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