#122E7F#122E7F

#122E7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.141 H 264.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#122E7F
RGBrgb(18, 46, 127)
HSLhsl(225, 75%, 28%)
HSVhsv(225, 86%, 50%)
CMYKcmyk(85.8%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.35, 22.73, -48.51)
CIE-LCHlch(22.35, 53.57, 295.10°)
OKLaboklab(33.92% -0.0125 -0.1404)
OKLCHoklch(33.92% 0.141 264.9)
XYZxyz(5.0559, 3.6143, 20.5057)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122E7F #7F6312
analogous
#12647F #122E7F #2C127F
triadic
#122E7F #7F122E #2E7F12
tetradic
#122E7F #7F1264 #7F6312 #127F2C
square
#122E7F #7F1264 #7F6312 #127F2C
split-complementary
#122E7F #7F2C12 #647F12
monochromatic
#040A1B #0A1B49 #122E7F #1A41B5 #2B59E1

Accessibility & contrast

On white

12.19
#122E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122E7F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122E7F#FFFFFF#000000##FFFFFF
##122E7F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122e7f;
/* rgb */ color: rgb(18, 46, 127);
/* oklch */ color: oklch(33.9% 0.141 264.9);
Tailwind
colors: {
  custom: {
    50: '#6666a5',
    500: '#122e7f',
    950: '#000000',
  },
}
SCSS
$custom: #122e7f;
$custom-light: #6666a5;
$custom-dark: #000000;
JSON
{
  "hex": "#122e7f",
  "rgb": {
    "r": 18,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 224.587,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33916,
    "c": 0.14098,
    "h": 264.9
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#122E7F
secondary
#B59538
accent
#C236F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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