#181255#181255

#181255 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.115 H 277.7°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#181255
RGBrgb(24, 18, 85)
HSLhsl(245, 65%, 20%)
HSVhsv(245, 79%, 33%)
CMYKcmyk(71.8%, 78.8%, 0%, 66.7%)
CIE-LABlab(11.15, 26.15, -39.40)
CIE-LCHlch(11.15, 47.29, 303.57°)
OKLaboklab(24.53% 0.0155 -0.1138)
OKLCHoklch(24.53% 0.115 277.7)
XYZxyz(2.2322, 1.2825, 8.7225)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181255 #4F5512
analogous
#122D55 #181255 #391255
triadic
#181255 #551812 #125518
tetradic
#181255 #55122D #4F5512 #125539
square
#181255 #55122D #4F5512 #125539
split-complementary
#181255 #553912 #2D5512
monochromatic
#070519 #0A0722 #181255 #261D88 #3527BA

Accessibility & contrast

On white

16.71
#181255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#181255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181255
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181255#FFFFFF#000000##FFFFFF
##1812551.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001B54
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181255;
/* rgb */ color: rgb(24, 18, 85);
/* oklch */ color: oklch(24.5% 0.115 277.7);
Tailwind
colors: {
  custom: {
    50: '#5f5186',
    500: '#181255',
    950: '#000000',
  },
}
SCSS
$custom: #181255;
$custom-light: #5f5186;
$custom-dark: #000000;
JSON
{
  "hex": "#181255",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 245.373,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24534,
    "c": 0.11483,
    "h": 277.7
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#181255
secondary
#868E35
accent
#E840D9
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181255

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

Preview Lab → · Contrast checker → · Palette generator →

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