#181248#181248

#181248 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.096 H 280.8°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#181248
RGBrgb(24, 18, 72)
HSLhsl(247, 60%, 18%)
HSVhsv(247, 75%, 28%)
CMYKcmyk(66.7%, 75%, 0%, 71.8%)
CIE-LABlab(9.76, 21.32, -32.74)
CIE-LCHlch(9.76, 39.07, 303.08°)
OKLaboklab(23.11% 0.018 -0.0943)
OKLCHoklch(23.11% 0.096 280.8)
XYZxyz(1.7623, 1.0946, 6.2480)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181248 #424812
analogous
#122748 #181248 #331248
triadic
#181248 #481812 #124818
tetradic
#181248 #481227 #424812 #124833
square
#181248 #481227 #424812 #124833
split-complementary
#181248 #483312 #274812
monochromatic
#080618 #080618 #181248 #281E79 #392AAA

Accessibility & contrast

On white

17.23
#181248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#181248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181248
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181248#FFFFFF#000000##FFFFFF
##1812481.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001947
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181248;
/* rgb */ color: rgb(24, 18, 72);
/* oklch */ color: oklch(23.1% 0.096 280.8);
Tailwind
colors: {
  custom: {
    50: '#5c507c',
    500: '#181248',
    950: '#000000',
  },
}
SCSS
$custom: #181248;
$custom-light: #5c507c;
$custom-dark: #000000;
JSON
{
  "hex": "#181248",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 246.667,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23109,
    "c": 0.09599,
    "h": 280.8
  },
  "luminance": 0.01095
}

Semantic roles & 50–950 ramp

primary
#181248
secondary
#798135
accent
#E345D2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #181248

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

Preview Lab → · Contrast checker → · Palette generator →

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