#122957#122957

#122957 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.088 H 262.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#122957
RGBrgb(18, 41, 87)
HSLhsl(220, 66%, 21%)
HSVhsv(220, 79%, 34%)
CMYKcmyk(79.3%, 52.9%, 0%, 65.9%)
CIE-LABlab(17.47, 9.45, -30.47)
CIE-LCHlch(17.47, 31.91, 287.23°)
OKLaboklab(29.17% -0.0117 -0.0875)
OKLCHoklch(29.17% 0.088 262.4)
XYZxyz(2.7621, 2.4023, 9.3331)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122957 #574012
analogous
#124B57 #122957 #1D1257
triadic
#122957 #571229 #295712
tetradic
#122957 #57124B #574012 #12571D
square
#122957 #57124B #574012 #12571D
split-complementary
#122957 #571D12 #4B5712
monochromatic
#050C19 #081124 #122957 #1C418A #2759BC

Accessibility & contrast

On white

14.18
#122957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#122957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122957
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122957#FFFFFF#000000##FFFFFF
##1229571.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2E59
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122957;
/* rgb */ color: rgb(18, 41, 87);
/* oklch */ color: oklch(29.2% 0.088 262.4);
Tailwind
colors: {
  custom: {
    50: '#5b6287',
    500: '#122957',
    950: '#000000',
  },
}
SCSS
$custom: #122957;
$custom-light: #5b6287;
$custom-dark: #000000;
JSON
{
  "hex": "#122957",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 87
  },
  "hsl": {
    "h": 220,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29173,
    "c": 0.08829,
    "h": 262.4
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#122957
secondary
#907135
accent
#B03FE9
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122957

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

Preview Lab → · Contrast checker → · Palette generator →

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