#122052#122052

#122052 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.093 H 267.7°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#122052
RGBrgb(18, 32, 82)
HSLhsl(227, 64%, 20%)
HSVhsv(227, 78%, 32%)
CMYKcmyk(78%, 61%, 0%, 67.8%)
CIE-LABlab(14.23, 14.06, -32.34)
CIE-LCHlch(14.23, 35.26, 293.50°)
OKLaboklab(26.59% -0.0037 -0.0932)
OKLCHoklch(26.59% 0.093 267.7)
XYZxyz(2.2884, 1.7706, 8.2022)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122052 #524412
analogous
#124052 #122052 #241252
triadic
#122052 #521220 #205212
tetradic
#122052 #521240 #524412 #125224
square
#122052 #521240 #524412 #125224
split-complementary
#122052 #522412 #405212
monochromatic
#060A19 #070C20 #122052 #1D3484 #2847B6

Accessibility & contrast

On white

15.51
#122052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#122052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122052
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122052#FFFFFF#000000##FFFFFF
##1220521.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #122052;
/* rgb */ color: rgb(18, 32, 82);
/* oklch */ color: oklch(26.6% 0.093 267.7);
Tailwind
colors: {
  custom: {
    50: '#5a5b83',
    500: '#122052',
    950: '#000000',
  },
}
SCSS
$custom: #122052;
$custom-light: #5a5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#122052",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 82
  },
  "hsl": {
    "h": 226.875,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26589,
    "c": 0.09325,
    "h": 267.7
  },
  "luminance": 0.01771
}

Semantic roles & 50–950 ramp

primary
#122052
secondary
#8B7835
accent
#C341E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122052

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

Preview Lab → · Contrast checker → · Palette generator →

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