#122E56#122E56

#122E56 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.4% C 0.080 H 257.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#122E56
RGBrgb(18, 46, 86)
HSLhsl(215, 65%, 20%)
HSVhsv(215, 79%, 34%)
CMYKcmyk(79.1%, 46.5%, 0%, 66.3%)
CIE-LABlab(19.03, 5.34, -27.30)
CIE-LCHlch(19.03, 27.82, 281.07°)
OKLaboklab(30.35% -0.017 -0.0781)
OKLCHoklch(30.35% 0.08 257.7)
XYZxyz(2.9056, 2.7542, 9.1808)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122E56 #563A12
analogous
#125056 #122E56 #181256
triadic
#122E56 #56122E #2E5612
tetradic
#122E56 #561250 #563A12 #125618
square
#122E56 #561250 #563A12 #125618
split-complementary
#122E56 #561812 #505612
monochromatic
#050E19 #071323 #122E56 #1D4989 #2764BB

Accessibility & contrast

On white

13.54
#122E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#122E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122E56
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122E56#FFFFFF#000000##FFFFFF
##122E561.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3258
Deuteranopia (green-blind)
#0E2B55
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122e56;
/* rgb */ color: rgb(18, 46, 86);
/* oklch */ color: oklch(30.4% 0.080 257.7);
Tailwind
colors: {
  custom: {
    50: '#5a6686',
    500: '#122e56',
    950: '#000000',
  },
}
SCSS
$custom: #122e56;
$custom-light: #5a6686;
$custom-dark: #000000;
JSON
{
  "hex": "#122e56",
  "rgb": {
    "r": 18,
    "g": 46,
    "b": 86
  },
  "hsl": {
    "h": 215.294,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30351,
    "c": 0.07991,
    "h": 257.7
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#122E56
secondary
#8F6A35
accent
#A33FE8
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #122E56

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

Preview Lab → · Contrast checker → · Palette generator →

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