#122159#122159

#122159 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.103 H 267.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#122159
RGBrgb(18, 33, 89)
HSLhsl(227, 66%, 21%)
HSVhsv(227, 80%, 35%)
CMYKcmyk(79.8%, 62.9%, 0%, 65.1%)
CIE-LABlab(15.15, 16.29, -35.57)
CIE-LCHlch(15.15, 39.12, 294.61°)
OKLaboklab(27.47% -0.0043 -0.1026)
OKLCHoklch(27.47% 0.103 267.6)
XYZxyz(2.5959, 1.9373, 9.6864)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122159 #594A12
analogous
#124459 #122159 #261259
triadic
#122159 #591221 #215912
tetradic
#122159 #591244 #594A12 #125926
square
#122159 #591244 #594A12 #125926
split-complementary
#122159 #592612 #445912
monochromatic
#050919 #080E26 #122159 #1C348C #2747BF

Accessibility & contrast

On white

15.13
#122159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#122159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122159
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122159#FFFFFF#000000##FFFFFF
##1221591.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#002F39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122159;
/* rgb */ color: rgb(18, 33, 89);
/* oklch */ color: oklch(27.5% 0.103 267.6);
Tailwind
colors: {
  custom: {
    50: '#5c5b88',
    500: '#122159',
    950: '#000000',
  },
}
SCSS
$custom: #122159;
$custom-light: #5c5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#122159",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 227.324,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27473,
    "c": 0.10273,
    "h": 267.6
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#122159
secondary
#927E35
accent
#C53FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #122159

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

Preview Lab → · Contrast checker → · Palette generator →

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