#122D57#122D57

#122D57 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.083 H 259.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#122D57
RGBrgb(18, 45, 87)
HSLhsl(217, 66%, 21%)
HSVhsv(217, 79%, 34%)
CMYKcmyk(79.3%, 48.3%, 0%, 65.9%)
CIE-LABlab(18.77, 6.50, -28.39)
CIE-LCHlch(18.77, 29.12, 282.90°)
OKLaboklab(30.17% -0.0157 -0.0813)
OKLCHoklch(30.17% 0.083 259)
XYZxyz(2.9075, 2.6932, 9.3816)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D57 #573C12
analogous
#124F57 #122D57 #1A1257
triadic
#122D57 #57122D #2D5712
tetradic
#122D57 #57124F #573C12 #12571A
square
#122D57 #57124F #573C12 #12571A
split-complementary
#122D57 #571A12 #4F5712
monochromatic
#050D19 #081324 #122D57 #1C478A #2761BC

Accessibility & contrast

On white

13.65
#122D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#122D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122D57
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D57#FFFFFF#000000##FFFFFF
##122D571.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#0A2B56
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122d57;
/* rgb */ color: rgb(18, 45, 87);
/* oklch */ color: oklch(30.2% 0.083 259.0);
Tailwind
colors: {
  custom: {
    50: '#5b6587',
    500: '#122d57',
    950: '#000000',
  },
}
SCSS
$custom: #122d57;
$custom-light: #5b6587;
$custom-dark: #000000;
JSON
{
  "hex": "#122d57",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 87
  },
  "hsl": {
    "h": 216.522,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30172,
    "c": 0.08279,
    "h": 259
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#122D57
secondary
#906C35
accent
#A63FE9
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #122D57

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

Preview Lab → · Contrast checker → · Palette generator →

#122D57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva