#122559#122559

#122559 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.097 H 265.4°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#122559
RGBrgb(18, 37, 89)
HSLhsl(224, 66%, 21%)
HSVhsv(224, 80%, 35%)
CMYKcmyk(79.8%, 58.4%, 0%, 65.1%)
CIE-LABlab(16.37, 13.30, -33.59)
CIE-LCHlch(16.37, 36.13, 291.59°)
OKLaboklab(28.39% -0.0077 -0.0968)
OKLCHoklch(28.39% 0.097 265.4)
XYZxyz(2.7136, 2.1727, 9.7256)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122559 #594612
analogous
#124859 #122559 #221259
triadic
#122559 #591225 #255912
tetradic
#122559 #591248 #594612 #125922
square
#122559 #591248 #594612 #125922
split-complementary
#122559 #592212 #485912
monochromatic
#050B19 #081026 #122559 #1C3A8C #274FBF

Accessibility & contrast

On white

14.64
#122559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#122559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122559
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122559#FFFFFF#000000##FFFFFF
##1225591.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#00323B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #122559;
/* rgb */ color: rgb(18, 37, 89);
/* oklch */ color: oklch(28.4% 0.097 265.4);
Tailwind
colors: {
  custom: {
    50: '#5c5f88',
    500: '#122559',
    950: '#000000',
  },
}
SCSS
$custom: #122559;
$custom-light: #5c5f88;
$custom-dark: #000000;
JSON
{
  "hex": "#122559",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 89
  },
  "hsl": {
    "h": 223.944,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28385,
    "c": 0.09708,
    "h": 265.4
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#122559
secondary
#927935
accent
#BC3FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #122559

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

Preview Lab → · Contrast checker → · Palette generator →

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