#122558#122558

#122558 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.096 H 265.3°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#122558
RGBrgb(18, 37, 88)
HSLhsl(224, 66%, 21%)
HSVhsv(224, 80%, 35%)
CMYKcmyk(79.5%, 58%, 0%, 65.5%)
CIE-LABlab(16.29, 12.87, -33.06)
CIE-LCHlch(16.29, 35.48, 291.27°)
OKLaboklab(28.3% -0.0078 -0.0952)
OKLCHoklch(28.3% 0.096 265.3)
XYZxyz(2.6719, 2.1560, 9.5060)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122558 #584512
analogous
#124858 #122558 #221258
triadic
#122558 #581225 #255812
tetradic
#122558 #581248 #584512 #125822
square
#122558 #581248 #584512 #125822
split-complementary
#122558 #582212 #485812
monochromatic
#050B19 #081025 #122558 #1C3A8B #2750BE

Accessibility & contrast

On white

14.67
#122558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122558
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122558#FFFFFF#000000##FFFFFF
##1225581.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122558;
/* rgb */ color: rgb(18, 37, 88);
/* oklch */ color: oklch(28.3% 0.096 265.3);
Tailwind
colors: {
  custom: {
    50: '#5b5f88',
    500: '#122558',
    950: '#000000',
  },
}
SCSS
$custom: #122558;
$custom-light: #5b5f88;
$custom-dark: #000000;
JSON
{
  "hex": "#122558",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 88
  },
  "hsl": {
    "h": 223.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28296,
    "c": 0.09552,
    "h": 265.3
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#122558
secondary
#917835
accent
#BB3FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122558

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

Preview Lab → · Contrast checker → · Palette generator →

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