#122357#122357

#122357 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.097 H 266.4°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#122357
RGBrgb(18, 35, 87)
HSLhsl(225, 66%, 21%)
HSVhsv(225, 79%, 34%)
CMYKcmyk(79.3%, 59.8%, 0%, 65.9%)
CIE-LABlab(15.58, 13.94, -33.53)
CIE-LCHlch(15.58, 36.31, 292.58°)
OKLaboklab(27.74% -0.0061 -0.0966)
OKLCHoklch(27.74% 0.097 266.4)
XYZxyz(2.5702, 2.0185, 9.2691)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122357 #574612
analogous
#124557 #122357 #231257
triadic
#122357 #571223 #235712
tetradic
#122357 #571245 #574612 #125723
square
#122357 #571245 #574612 #125723
split-complementary
#122357 #572312 #455712
monochromatic
#050A19 #080F24 #122357 #1C378A #274CBC

Accessibility & contrast

On white

14.96
#122357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#122357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122357
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122357#FFFFFF#000000##FFFFFF
##1223571.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #122357;
/* rgb */ color: rgb(18, 35, 87);
/* oklch */ color: oklch(27.7% 0.097 266.4);
Tailwind
colors: {
  custom: {
    50: '#5b5d87',
    500: '#122357',
    950: '#000000',
  },
}
SCSS
$custom: #122357;
$custom-light: #5b5d87;
$custom-dark: #000000;
JSON
{
  "hex": "#122357",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 87
  },
  "hsl": {
    "h": 225.217,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2774,
    "c": 0.0968,
    "h": 266.4
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#122357
secondary
#907935
accent
#BF3FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122357

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

Preview Lab → · Contrast checker → · Palette generator →

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