#122652#122652

#122652 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.085 H 263.5°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#122652
RGBrgb(18, 38, 82)
HSLhsl(221, 64%, 20%)
HSVhsv(221, 78%, 32%)
CMYKcmyk(78%, 53.7%, 0%, 67.8%)
CIE-LABlab(16.12, 9.54, -29.28)
CIE-LCHlch(16.12, 30.80, 288.04°)
OKLaboklab(28.02% -0.0095 -0.0841)
OKLCHoklch(28.02% 0.085 263.5)
XYZxyz(2.4650, 2.1238, 8.2610)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122652 #523E12
analogous
#124652 #122652 #1E1252
triadic
#122652 #521226 #265212
tetradic
#122652 #521246 #523E12 #12521E
square
#122652 #521246 #523E12 #12521E
split-complementary
#122652 #521E12 #465212
monochromatic
#060C19 #070F20 #122652 #1D3D84 #2855B6

Accessibility & contrast

On white

14.74
#122652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#122652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122652
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122652#FFFFFF#000000##FFFFFF
##1226521.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#003038
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122652;
/* rgb */ color: rgb(18, 38, 82);
/* oklch */ color: oklch(28.0% 0.085 263.5);
Tailwind
colors: {
  custom: {
    50: '#5a5f83',
    500: '#122652',
    950: '#000000',
  },
}
SCSS
$custom: #122652;
$custom-light: #5a5f83;
$custom-dark: #000000;
JSON
{
  "hex": "#122652",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 82
  },
  "hsl": {
    "h": 221.25,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28021,
    "c": 0.0846,
    "h": 263.5
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#122652
secondary
#8B7035
accent
#B341E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #122652

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

Preview Lab → · Contrast checker → · Palette generator →

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