#122657#122657

#122657 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.093 H 264.5°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#122657
RGBrgb(18, 38, 87)
HSLhsl(223, 66%, 21%)
HSVhsv(223, 79%, 34%)
CMYKcmyk(79.3%, 56.3%, 0%, 65.9%)
CIE-LABlab(16.52, 11.69, -32.01)
CIE-LCHlch(16.52, 34.08, 290.06°)
OKLaboklab(28.44% -0.0089 -0.0921)
OKLCHoklch(28.44% 0.093 264.5)
XYZxyz(2.6623, 2.2027, 9.2998)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122657 #574312
analogous
#124857 #122657 #211257
triadic
#122657 #571226 #265712
tetradic
#122657 #571248 #574312 #125721
square
#122657 #571248 #574312 #125721
split-complementary
#122657 #572112 #485712
monochromatic
#050B19 #081024 #122657 #1C3C8A #2752BC

Accessibility & contrast

On white

14.58
#122657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#122657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122657
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122657#FFFFFF#000000##FFFFFF
##1226571.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C59
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #122657;
/* rgb */ color: rgb(18, 38, 87);
/* oklch */ color: oklch(28.4% 0.093 264.5);
Tailwind
colors: {
  custom: {
    50: '#5b5f87',
    500: '#122657',
    950: '#000000',
  },
}
SCSS
$custom: #122657;
$custom-light: #5b5f87;
$custom-dark: #000000;
JSON
{
  "hex": "#122657",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 87
  },
  "hsl": {
    "h": 222.609,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28445,
    "c": 0.09253,
    "h": 264.5
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#122657
secondary
#907535
accent
#B83FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122657

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

Preview Lab → · Contrast checker → · Palette generator →

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