#181254#181254

#181254 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.113 H 277.9°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#181254
RGBrgb(24, 18, 84)
HSLhsl(245, 65%, 20%)
HSVhsv(245, 79%, 33%)
CMYKcmyk(71.4%, 78.6%, 0%, 67.1%)
CIE-LABlab(11.04, 25.78, -38.90)
CIE-LCHlch(11.04, 46.67, 303.53°)
OKLaboklab(24.42% 0.0157 -0.1123)
OKLCHoklch(24.42% 0.113 277.9)
XYZxyz(2.1927, 1.2667, 8.5147)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181254 #4E5412
analogous
#122D54 #181254 #391254
triadic
#181254 #541812 #125418
tetradic
#181254 #54122D #4E5412 #125439
square
#181254 #54122D #4E5412 #125439
split-complementary
#181254 #543912 #2D5412
monochromatic
#070519 #0A0722 #181254 #261D86 #3528B9

Accessibility & contrast

On white

16.75
#181254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181254
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181254#FFFFFF#000000##FFFFFF
##1812541.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002056
Deuteranopia (green-blind)
#001B53
Tritanopia (blue-blind)
#002431
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181254;
/* rgb */ color: rgb(24, 18, 84);
/* oklch */ color: oklch(24.4% 0.113 277.9);
Tailwind
colors: {
  custom: {
    50: '#5f5185',
    500: '#181254',
    950: '#000000',
  },
}
SCSS
$custom: #181254;
$custom-light: #5f5185;
$custom-dark: #000000;
JSON
{
  "hex": "#181254",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 245.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.24421,
    "c": 0.11343,
    "h": 277.9
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#181254
secondary
#858D35
accent
#E840D8
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181254

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

Preview Lab → · Contrast checker → · Palette generator →

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