#122252#122252

#122252 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.090 H 266.4°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#122252
RGBrgb(18, 34, 82)
HSLhsl(225, 64%, 20%)
HSVhsv(225, 78%, 32%)
CMYKcmyk(78%, 58.5%, 0%, 67.8%)
CIE-LABlab(14.85, 12.55, -31.34)
CIE-LCHlch(14.85, 33.75, 291.82°)
OKLaboklab(27.06% -0.0056 -0.0902)
OKLCHoklch(27.06% 0.09 266.4)
XYZxyz(2.3439, 1.8816, 8.2207)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122252 #524212
analogous
#124252 #122252 #221252
triadic
#122252 #521222 #225212
tetradic
#122252 #521242 #524212 #125222
square
#122252 #521242 #524212 #125222
split-complementary
#122252 #522212 #425212
monochromatic
#060A19 #070D20 #122252 #1D3784 #284CB6

Accessibility & contrast

On white

15.26
#122252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#122252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122252
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122252#FFFFFF#000000##FFFFFF
##1222521.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022854
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122252;
/* rgb */ color: rgb(18, 34, 82);
/* oklch */ color: oklch(27.1% 0.090 266.4);
Tailwind
colors: {
  custom: {
    50: '#5a5c83',
    500: '#122252',
    950: '#000000',
  },
}
SCSS
$custom: #122252;
$custom-light: #5a5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#122252",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 225,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27055,
    "c": 0.09035,
    "h": 266.4
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#122252
secondary
#8B7535
accent
#BD41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122252

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

Preview Lab → · Contrast checker → · Palette generator →

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