#122158#122158

#122158 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.101 H 267.5°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#122158
RGBrgb(18, 33, 88)
HSLhsl(227, 66%, 21%)
HSVhsv(227, 80%, 35%)
CMYKcmyk(79.5%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.06, 15.86, -35.04)
CIE-LCHlch(15.06, 38.46, 294.35°)
OKLaboklab(27.38% -0.0043 -0.1011)
OKLCHoklch(27.38% 0.101 267.5)
XYZxyz(2.5541, 1.9206, 9.4667)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122158 #584912
analogous
#124458 #122158 #261258
triadic
#122158 #581221 #215812
tetradic
#122158 #581244 #584912 #125826
square
#122158 #581244 #584912 #125826
split-complementary
#122158 #582612 #445812
monochromatic
#050A19 #080E25 #122158 #1C348B #2747BE

Accessibility & contrast

On white

15.17
#122158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#122158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122158
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122158#FFFFFF#000000##FFFFFF
##1221581.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122158;
/* rgb */ color: rgb(18, 33, 88);
/* oklch */ color: oklch(27.4% 0.101 267.5);
Tailwind
colors: {
  custom: {
    50: '#5c5b88',
    500: '#122158',
    950: '#000000',
  },
}
SCSS
$custom: #122158;
$custom-light: #5c5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#122158",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 227.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27378,
    "c": 0.10119,
    "h": 267.5
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#122158
secondary
#917D35
accent
#C53FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #122158

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

Preview Lab → · Contrast checker → · Palette generator →

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