#122C51#122C51

#122C51 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.075 H 257.6°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#122C51
RGBrgb(18, 44, 81)
HSLhsl(215, 64%, 19%)
HSVhsv(215, 78%, 32%)
CMYKcmyk(77.8%, 45.7%, 0%, 68.2%)
CIE-LABlab(18.03, 4.66, -25.56)
CIE-LCHlch(18.03, 25.98, 280.33°)
OKLaboklab(29.46% -0.0161 -0.073)
OKLCHoklch(29.46% 0.075 257.6)
XYZxyz(2.6348, 2.5238, 8.1313)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C51 #513712
analogous
#124C51 #122C51 #181251
triadic
#122C51 #51122C #2C5112
tetradic
#122C51 #51124C #513712 #125118
square
#122C51 #51124C #513712 #125118
split-complementary
#122C51 #511812 #4C5112
monochromatic
#060E19 #07111F #122C51 #1D4783 #2862B5

Accessibility & contrast

On white

13.96
#122C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#122C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122C51
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C51#FFFFFF#000000##FFFFFF
##122C511.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F52
Deuteranopia (green-blind)
#102950
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122c51;
/* rgb */ color: rgb(18, 44, 81);
/* oklch */ color: oklch(29.5% 0.075 257.6);
Tailwind
colors: {
  custom: {
    50: '#596482',
    500: '#122c51',
    950: '#000000',
  },
}
SCSS
$custom: #122c51;
$custom-light: #596482;
$custom-dark: #000000;
JSON
{
  "hex": "#122c51",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 81
  },
  "hsl": {
    "h": 215.238,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29462,
    "c": 0.07474,
    "h": 257.6
  },
  "luminance": 0.02524
}

Semantic roles & 50–950 ramp

primary
#122C51
secondary
#8A6735
accent
#A241E7
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #122C51

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

Preview Lab → · Contrast checker → · Palette generator →

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