#181245#181245

#181245 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.091 H 281.7°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#181245
RGBrgb(24, 18, 69)
HSLhsl(247, 59%, 17%)
HSVhsv(247, 74%, 27%)
CMYKcmyk(65.2%, 73.9%, 0%, 72.9%)
CIE-LABlab(9.45, 20.19, -31.13)
CIE-LCHlch(9.45, 37.11, 302.97°)
OKLaboklab(22.8% 0.0185 -0.0896)
OKLCHoklch(22.8% 0.091 281.7)
XYZxyz(1.6668, 1.0564, 5.7451)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181245 #3F4512
analogous
#122645 #181245 #321245
triadic
#181245 #451812 #124518
tetradic
#181245 #451226 #3F4512 #124532
square
#181245 #451226 #3F4512 #124532
split-complementary
#181245 #453212 #264512
monochromatic
#080618 #080618 #181245 #291F76 #3A2BA6

Accessibility & contrast

On white

17.34
#181245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#181245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181245
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181245#FFFFFF#000000##FFFFFF
##1812451.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001944
Tritanopia (blue-blind)
#011F29
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #181245;
/* rgb */ color: rgb(24, 18, 69);
/* oklch */ color: oklch(22.8% 0.091 281.7);
Tailwind
colors: {
  custom: {
    50: '#5b5079',
    500: '#181245',
    950: '#000000',
  },
}
SCSS
$custom: #181245;
$custom-light: #5b5079;
$custom-dark: #000000;
JSON
{
  "hex": "#181245",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 247.059,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22796,
    "c": 0.09146,
    "h": 281.7
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#181245
secondary
#757E35
accent
#E246CF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040209
muted
#79787B

Preview Lab

Preview with #181245

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

Preview Lab → · Contrast checker → · Palette generator →

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