#122157#122157

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

Color values

HEX#122157
RGBrgb(18, 33, 87)
HSLhsl(227, 66%, 21%)
HSVhsv(227, 79%, 34%)
CMYKcmyk(79.3%, 62.1%, 0%, 65.9%)
CIE-LABlab(14.98, 15.44, -34.51)
CIE-LCHlch(14.98, 37.81, 294.10°)
OKLaboklab(27.28% -0.0044 -0.0995)
OKLCHoklch(27.28% 0.1 267.5)
XYZxyz(2.5130, 1.9042, 9.2501)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122157 #574812
analogous
#124357 #122157 #261257
triadic
#122157 #571221 #215712
tetradic
#122157 #571243 #574812 #125726
square
#122157 #571243 #574812 #125726
split-complementary
#122157 #572612 #435712
monochromatic
#050A19 #080E24 #122157 #1C348A #2747BC

Accessibility & contrast

On white

15.21
#122157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122157
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122157#FFFFFF#000000##FFFFFF
##1221571.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122157;
/* rgb */ color: rgb(18, 33, 87);
/* oklch */ color: oklch(27.3% 0.100 267.5);
Tailwind
colors: {
  custom: {
    50: '#5b5b87',
    500: '#122157',
    950: '#000000',
  },
}
SCSS
$custom: #122157;
$custom-light: #5b5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#122157",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 226.957,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27283,
    "c": 0.09964,
    "h": 267.5
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#122157
secondary
#907C35
accent
#C43FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122157

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

Preview Lab → · Contrast checker → · Palette generator →

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