#122152#122152

#122152 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.092 H 267.1°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#122152
RGBrgb(18, 33, 82)
HSLhsl(226, 64%, 20%)
HSVhsv(226, 78%, 32%)
CMYKcmyk(78%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.54, 13.30, -31.84)
CIE-LCHlch(14.54, 34.51, 292.68°)
OKLaboklab(26.82% -0.0047 -0.0917)
OKLCHoklch(26.82% 0.092 267.1)
XYZxyz(2.3158, 1.8253, 8.2113)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122152 #524312
analogous
#124152 #122152 #231252
triadic
#122152 #521221 #215212
tetradic
#122152 #521241 #524312 #125223
square
#122152 #521241 #524312 #125223
split-complementary
#122152 #522312 #415212
monochromatic
#060A19 #070D20 #122152 #1D3584 #2849B6

Accessibility & contrast

On white

15.38
#122152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#122152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122152
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122152#FFFFFF#000000##FFFFFF
##1221521.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122152;
/* rgb */ color: rgb(18, 33, 82);
/* oklch */ color: oklch(26.8% 0.092 267.1);
Tailwind
colors: {
  custom: {
    50: '#5a5b83',
    500: '#122152',
    950: '#000000',
  },
}
SCSS
$custom: #122152;
$custom-light: #5a5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#122152",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 225.938,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26821,
    "c": 0.0918,
    "h": 267.1
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#122152
secondary
#8B7735
accent
#C041E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122152

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

Preview Lab → · Contrast checker → · Palette generator →

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