#122452#122452

#122452 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.087 H 265.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#122452
RGBrgb(18, 36, 82)
HSLhsl(223, 64%, 20%)
HSVhsv(223, 78%, 32%)
CMYKcmyk(78%, 56.1%, 0%, 67.8%)
CIE-LABlab(15.48, 11.04, -30.32)
CIE-LCHlch(15.48, 32.26, 290.01°)
OKLaboklab(27.53% -0.0076 -0.0871)
OKLCHoklch(27.53% 0.087 265)
XYZxyz(2.4028, 1.9993, 8.2403)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122452 #524012
analogous
#124452 #122452 #201252
triadic
#122452 #521224 #245212
tetradic
#122452 #521244 #524012 #125220
square
#122452 #521244 #524012 #125220
split-complementary
#122452 #522012 #445212
monochromatic
#060B19 #070E20 #122452 #1D3A84 #2850B6

Accessibility & contrast

On white

15.00
#122452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#122452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122452
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122452#FFFFFF#000000##FFFFFF
##1224521.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072A54
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #122452;
/* rgb */ color: rgb(18, 36, 82);
/* oklch */ color: oklch(27.5% 0.087 265.0);
Tailwind
colors: {
  custom: {
    50: '#5a5e83',
    500: '#122452',
    950: '#000000',
  },
}
SCSS
$custom: #122452;
$custom-light: #5a5e83;
$custom-dark: #000000;
JSON
{
  "hex": "#122452",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 223.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27533,
    "c": 0.08747,
    "h": 265
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#122452
secondary
#8B7335
accent
#B841E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122452

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

Preview Lab → · Contrast checker → · Palette generator →

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