#122A71#122A71

#122A71 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.7% C 0.126 H 265.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#122A71
RGBrgb(18, 42, 113)
HSLhsl(225, 73%, 26%)
HSVhsv(225, 84%, 44%)
CMYKcmyk(84.1%, 62.8%, 0%, 55.7%)
CIE-LABlab(19.95, 19.79, -43.52)
CIE-LCHlch(19.95, 47.80, 294.45°)
OKLaboklab(31.73% -0.0103 -0.1258)
OKLCHoklch(31.73% 0.126 265.3)
XYZxyz(4.0570, 2.9763, 15.9802)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A71 #715912
analogous
#125971 #122A71 #291271
triadic
#122A71 #71122A #2A7112
tetradic
#122A71 #711259 #715912 #127129
square
#122A71 #711259 #715912 #127129
split-complementary
#122A71 #712912 #597112
monochromatic
#040A1A #0A163C #122A71 #1A3EA6 #2351DB

Accessibility & contrast

On white

13.16
#122A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#122A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A71
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A71#FFFFFF#000000##FFFFFF
##122A711.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122a71;
/* rgb */ color: rgb(18, 42, 113);
/* oklch */ color: oklch(31.7% 0.126 265.3);
Tailwind
colors: {
  custom: {
    50: '#62639a',
    500: '#122a71',
    950: '#000000',
  },
}
SCSS
$custom: #122a71;
$custom-light: #62639a;
$custom-dark: #000000;
JSON
{
  "hex": "#122a71",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 224.842,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31729,
    "c": 0.12625,
    "h": 265.3
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#122A71
secondary
#A88B37
accent
#C139EF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122A71

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

Preview Lab → · Contrast checker → · Palette generator →

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