#122D7F#122D7F

#122D7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.142 H 265.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#122D7F
RGBrgb(18, 45, 127)
HSLhsl(225, 75%, 28%)
HSVhsv(225, 86%, 50%)
CMYKcmyk(85.8%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.08, 23.43, -48.96)
CIE-LCHlch(22.08, 54.28, 295.58°)
OKLaboklab(33.71% -0.0119 -0.1417)
OKLCHoklch(33.71% 0.142 265.2)
XYZxyz(5.0173, 3.5371, 20.4928)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D7F #7F6412
analogous
#12637F #122D7F #2E127F
triadic
#122D7F #7F122D #2D7F12
tetradic
#122D7F #7F1263 #7F6412 #127F2E
square
#122D7F #7F1263 #7F6412 #127F2E
split-complementary
#122D7F #7F2E12 #637F12
monochromatic
#04091B #0A1A49 #122D7F #1A40B5 #2B58E1

Accessibility & contrast

On white

12.30
#122D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122D7F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D7F#FFFFFF#000000##FFFFFF
##122D7F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122d7f;
/* rgb */ color: rgb(18, 45, 127);
/* oklch */ color: oklch(33.7% 0.142 265.2);
Tailwind
colors: {
  custom: {
    50: '#6665a5',
    500: '#122d7f',
    950: '#000000',
  },
}
SCSS
$custom: #122d7f;
$custom-light: #6665a5;
$custom-dark: #000000;
JSON
{
  "hex": "#122d7f",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 225.138,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33712,
    "c": 0.14225,
    "h": 265.2
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #122D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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