#122D71#122D71

#122D71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.4% C 0.122 H 264.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#122D71
RGBrgb(18, 45, 113)
HSLhsl(223, 73%, 26%)
HSVhsv(223, 84%, 44%)
CMYKcmyk(84.1%, 60.2%, 0%, 55.7%)
CIE-LABlab(20.82, 17.62, -42.10)
CIE-LCHlch(20.82, 45.64, 292.71°)
OKLaboklab(32.38% -0.0123 -0.1216)
OKLCHoklch(32.38% 0.122 264.2)
XYZxyz(4.1674, 3.1971, 16.0170)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D71 #715612
analogous
#125C71 #122D71 #261271
triadic
#122D71 #71122D #2D7112
tetradic
#122D71 #71125C #715612 #127126
square
#122D71 #71125C #715612 #127126
split-complementary
#122D71 #712612 #5C7112
monochromatic
#040B1A #0A183C #122D71 #1A42A6 #2357DB

Accessibility & contrast

On white

12.81
#122D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#122D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122D71
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D71#FFFFFF#000000##FFFFFF
##122D711.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #122d71;
/* rgb */ color: rgb(18, 45, 113);
/* oklch */ color: oklch(32.4% 0.122 264.2);
Tailwind
colors: {
  custom: {
    50: '#62659a',
    500: '#122d71',
    950: '#000000',
  },
}
SCSS
$custom: #122d71;
$custom-light: #62659a;
$custom-dark: #000000;
JSON
{
  "hex": "#122d71",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 222.947,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32379,
    "c": 0.12225,
    "h": 264.2
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#122D71
secondary
#A88837
accent
#BB39EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #122D71

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

Preview Lab → · Contrast checker → · Palette generator →

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