#181885#181885

#181885 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.172 H 270.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#181885
RGBrgb(24, 24, 133)
HSLhsl(240, 69%, 31%)
HSVhsv(240, 82%, 52%)
CMYKcmyk(82%, 82%, 0%, 47.8%)
CIE-LABlab(18.10, 39.56, -59.30)
CIE-LCHlch(18.10, 71.28, 303.70°)
OKLaboklab(31.11% 0.0017 -0.1717)
OKLCHoklch(31.11% 0.172 270.6)
XYZxyz(4.9355, 2.5403, 22.4160)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181885 #858518
analogous
#184E85 #181885 #4E1885
triadic
#181885 #851818 #188518
tetradic
#181885 #85184E #858518 #18854E
square
#181885 #85184E #858518 #18854E
split-complementary
#181885 #854E18 #4E8518
monochromatic
#05051D #0F0F51 #181885 #2121B9 #3C3CDC

Accessibility & contrast

On white

13.92
#181885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181885
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181885#FFFFFF#000000##FFFFFF
##1818851.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002683
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181885;
/* rgb */ color: rgb(24, 24, 133);
/* oklch */ color: oklch(31.1% 0.172 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b57aa',
    500: '#181885',
    950: '#000000',
  },
}
SCSS
$custom: #181885;
$custom-light: #6b57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#181885",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31108,
    "c": 0.17171,
    "h": 270.6
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#181885
secondary
#B9B940
accent
#EC3CEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181885

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

Preview Lab → · Contrast checker → · Palette generator →

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