#181252#181252

#181252 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.2% C 0.111 H 278.4°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#181252
RGBrgb(24, 18, 82)
HSLhsl(246, 64%, 20%)
HSVhsv(246, 78%, 32%)
CMYKcmyk(70.7%, 78%, 0%, 67.8%)
CIE-LABlab(10.82, 25.05, -37.90)
CIE-LCHlch(10.82, 45.43, 303.46°)
OKLaboklab(24.2% 0.0161 -0.1094)
OKLCHoklch(24.2% 0.111 278.4)
XYZxyz(2.1155, 1.2358, 8.1081)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181252 #4C5212
analogous
#122C52 #181252 #381252
triadic
#181252 #521812 #125218
tetradic
#181252 #52122C #4C5212 #125238
square
#181252 #52122C #4C5212 #125238
split-complementary
#181252 #523812 #2C5212
monochromatic
#070619 #090720 #181252 #271D84 #3528B6

Accessibility & contrast

On white

16.84
#181252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#181252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181252
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181252#FFFFFF#000000##FFFFFF
##1812521.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181252;
/* rgb */ color: rgb(24, 18, 82);
/* oklch */ color: oklch(24.2% 0.111 278.4);
Tailwind
colors: {
  custom: {
    50: '#5e5183',
    500: '#181252',
    950: '#000000',
  },
}
SCSS
$custom: #181252;
$custom-light: #5e5183;
$custom-dark: #000000;
JSON
{
  "hex": "#181252",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 245.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24196,
    "c": 0.11059,
    "h": 278.4
  },
  "luminance": 0.01236
}

Semantic roles & 50–950 ramp

primary
#181252
secondary
#838B35
accent
#E741D7
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181252

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

Preview Lab → · Contrast checker → · Palette generator →

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