#122257#122257

#122257 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.098 H 266.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#122257
RGBrgb(18, 34, 87)
HSLhsl(226, 66%, 21%)
HSVhsv(226, 79%, 34%)
CMYKcmyk(79.3%, 60.9%, 0%, 65.9%)
CIE-LABlab(15.28, 14.69, -34.02)
CIE-LCHlch(15.28, 37.06, 293.35°)
OKLaboklab(27.51% -0.0052 -0.0981)
OKLCHoklch(27.51% 0.098 266.9)
XYZxyz(2.5412, 1.9605, 9.2595)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122257 #574712
analogous
#124457 #122257 #241257
triadic
#122257 #571222 #225712
tetradic
#122257 #571244 #574712 #125724
square
#122257 #571244 #574712 #125724
split-complementary
#122257 #572412 #445712
monochromatic
#050A19 #080E24 #122257 #1C368A #274ABC

Accessibility & contrast

On white

15.08
#122257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122257
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122257#FFFFFF#000000##FFFFFF
##1222571.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122257;
/* rgb */ color: rgb(18, 34, 87);
/* oklch */ color: oklch(27.5% 0.098 266.9);
Tailwind
colors: {
  custom: {
    50: '#5b5c87',
    500: '#122257',
    950: '#000000',
  },
}
SCSS
$custom: #122257;
$custom-light: #5b5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#122257",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 226.087,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2751,
    "c": 0.09822,
    "h": 266.9
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#122257
secondary
#907B35
accent
#C13FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122257

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

Preview Lab → · Contrast checker → · Palette generator →

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