#122D54#122D54

#122D54 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.078 H 257.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#122D54
RGBrgb(18, 45, 84)
HSLhsl(215, 65%, 20%)
HSVhsv(215, 79%, 33%)
CMYKcmyk(78.6%, 46.4%, 0%, 67.1%)
CIE-LABlab(18.56, 5.21, -26.71)
CIE-LCHlch(18.56, 27.22, 281.04°)
OKLaboklab(29.94% -0.0164 -0.0764)
OKLCHoklch(29.94% 0.078 257.9)
XYZxyz(2.7875, 2.6452, 8.7494)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D54 #543912
analogous
#124E54 #122D54 #181254
triadic
#122D54 #54122D #2D5412
tetradic
#122D54 #54124E #543912 #125418
square
#122D54 #54124E #543912 #125418
split-complementary
#122D54 #541812 #4E5412
monochromatic
#050D19 #071222 #122D54 #1D4886 #2863B9

Accessibility & contrast

On white

13.73
#122D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#122D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122D54
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D54#FFFFFF#000000##FFFFFF
##122D541.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3056
Deuteranopia (green-blind)
#0F2A53
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122d54;
/* rgb */ color: rgb(18, 45, 84);
/* oklch */ color: oklch(29.9% 0.078 257.9);
Tailwind
colors: {
  custom: {
    50: '#5a6584',
    500: '#122d54',
    950: '#000000',
  },
}
SCSS
$custom: #122d54;
$custom-light: #5a6584;
$custom-dark: #000000;
JSON
{
  "hex": "#122d54",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 84
  },
  "hsl": {
    "h": 215.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.29944,
    "c": 0.07811,
    "h": 257.9
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#122D54
secondary
#8D6935
accent
#A340E8
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #122D54

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

Preview Lab → · Contrast checker → · Palette generator →

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