#122D7E#122D7E

#122D7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 265.1°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#122D7E
RGBrgb(18, 45, 126)
HSLhsl(225, 75%, 28%)
HSVhsv(225, 86%, 49%)
CMYKcmyk(85.7%, 64.3%, 0%, 50.6%)
CIE-LABlab(21.98, 23.02, -48.48)
CIE-LCHlch(21.98, 53.67, 295.40°)
OKLaboklab(33.61% -0.0119 -0.1403)
OKLCHoklch(33.61% 0.141 265.1)
XYZxyz(4.9524, 3.5111, 20.1513)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D7E #7E6312
analogous
#12637E #122D7E #2D127E
triadic
#122D7E #7E122D #2D7E12
tetradic
#122D7E #7E1263 #7E6312 #127E2D
square
#122D7E #7E1263 #7E6312 #127E2D
split-complementary
#122D7E #7E2D12 #637E12
monochromatic
#040A1B #0A1A48 #122D7E #1A40B4 #2A58E1

Accessibility & contrast

On white

12.34
#122D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122D7E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D7E#FFFFFF#000000##FFFFFF
##122D7E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122d7e;
/* rgb */ color: rgb(18, 45, 126);
/* oklch */ color: oklch(33.6% 0.141 265.1);
Tailwind
colors: {
  custom: {
    50: '#6665a4',
    500: '#122d7e',
    950: '#000000',
  },
}
SCSS
$custom: #122d7e;
$custom-light: #6665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#122d7e",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 225,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33614,
    "c": 0.14086,
    "h": 265.1
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#122D7E
secondary
#B49538
accent
#C336F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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