#122F7E#122F7E

#122F7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.138 H 264.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#122F7E
RGBrgb(18, 47, 126)
HSLhsl(224, 75%, 28%)
HSVhsv(224, 86%, 49%)
CMYKcmyk(85.7%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.54, 21.61, -47.58)
CIE-LCHlch(22.54, 52.25, 294.43°)
OKLaboklab(34.03% -0.0131 -0.1377)
OKLCHoklch(34.03% 0.138 264.6)
XYZxyz(5.0305, 3.6674, 20.1774)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F7E #7E6112
analogous
#12657E #122F7E #2B127E
triadic
#122F7E #7E122F #2F7E12
tetradic
#122F7E #7E1265 #7E6112 #127E2B
square
#122F7E #7E1265 #7E6112 #127E2B
split-complementary
#122F7E #7E2B12 #657E12
monochromatic
#040A1B #0A1B48 #122F7E #1A43B4 #2A5BE1

Accessibility & contrast

On white

12.11
#122F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#122F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F7E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F7E#FFFFFF#000000##FFFFFF
##122F7E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #122f7e;
/* rgb */ color: rgb(18, 47, 126);
/* oklch */ color: oklch(34.0% 0.138 264.6);
Tailwind
colors: {
  custom: {
    50: '#6567a4',
    500: '#122f7e',
    950: '#000000',
  },
}
SCSS
$custom: #122f7e;
$custom-light: #6567a4;
$custom-dark: #000000;
JSON
{
  "hex": "#122f7e",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 223.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34027,
    "c": 0.13828,
    "h": 264.6
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#122F7E
secondary
#B49338
accent
#BF36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #122F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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