#122072#122072

#122072 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.140 H 268.1°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#122072
RGBrgb(18, 32, 114)
HSLhsl(231, 73%, 26%)
HSVhsv(231, 84%, 45%)
CMYKcmyk(84.2%, 71.9%, 0%, 55.3%)
CIE-LABlab(17.35, 27.26, -48.42)
CIE-LCHlch(17.35, 55.57, 299.37°)
OKLaboklab(29.84% -0.0046 -0.1403)
OKLCHoklch(29.84% 0.14 268.1)
XYZxyz(3.8022, 2.3761, 16.1746)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122072 #726412
analogous
#125072 #122072 #341272
triadic
#122072 #721220 #207212
tetradic
#122072 #721250 #726412 #127234
square
#122072 #721250 #726412 #127234
split-complementary
#122072 #723412 #507212
monochromatic
#04071A #0A113D #122072 #1A2FA7 #233EDC

Accessibility & contrast

On white

14.23
#122072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#122072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122072
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122072#FFFFFF#000000##FFFFFF
##1220721.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122072;
/* rgb */ color: rgb(18, 32, 114);
/* oklch */ color: oklch(29.8% 0.140 268.1);
Tailwind
colors: {
  custom: {
    50: '#635b9b',
    500: '#122072',
    950: '#000000',
  },
}
SCSS
$custom: #122072;
$custom-light: #635b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#122072",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 231.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29844,
    "c": 0.14035,
    "h": 268.1
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#122072
secondary
#A99837
accent
#D538EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122072

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

Preview Lab → · Contrast checker → · Palette generator →

#122072 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva