#121252#121252

#121252 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.112 H 273.8°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#121252
RGBrgb(18, 18, 82)
HSLhsl(240, 64%, 20%)
HSVhsv(240, 78%, 32%)
CMYKcmyk(78%, 78%, 0%, 67.8%)
CIE-LABlab(10.34, 24.25, -38.72)
CIE-LCHlch(10.34, 45.68, 302.06°)
OKLaboklab(23.73% 0.0073 -0.112)
OKLCHoklch(23.73% 0.112 273.8)
XYZxyz(1.9882, 1.1702, 8.1021)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121252 #525212
analogous
#123252 #121252 #321252
triadic
#121252 #521212 #125212
tetradic
#121252 #521232 #525212 #125232
square
#121252 #521232 #525212 #125232
split-complementary
#121252 #523212 #325212
monochromatic
#060619 #070720 #121252 #1D1D84 #2828B6

Accessibility & contrast

On white

17.02
#121252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#121252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121252
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121252#FFFFFF#000000##FFFFFF
##1212521.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001951
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #121252;
/* rgb */ color: rgb(18, 18, 82);
/* oklch */ color: oklch(23.7% 0.112 273.8);
Tailwind
colors: {
  custom: {
    50: '#5c5083',
    500: '#121252',
    950: '#000000',
  },
}
SCSS
$custom: #121252;
$custom-light: #5c5083;
$custom-dark: #000000;
JSON
{
  "hex": "#121252",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 240,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.23726,
    "c": 0.1122,
    "h": 273.8
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#121252
secondary
#8B8B35
accent
#E741E7
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121252

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

Preview Lab → · Contrast checker → · Palette generator →

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