#181C85#181C85

#181C85 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.168 H 270.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#181C85
RGBrgb(24, 28, 133)
HSLhsl(238, 69%, 31%)
HSVhsv(238, 82%, 52%)
CMYKcmyk(82%, 78.9%, 0%, 47.8%)
CIE-LABlab(18.88, 37.32, -58.02)
CIE-LCHlch(18.88, 68.98, 302.75°)
OKLaboklab(31.65% 0.0005 -0.168)
OKLCHoklch(31.65% 0.168 270.2)
XYZxyz(5.0241, 2.7176, 22.4455)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C85 #858118
analogous
#185285 #181C85 #4A1885
triadic
#181C85 #85181C #1C8518
tetradic
#181C85 #851852 #858118 #18854A
square
#181C85 #851852 #858118 #18854A
split-complementary
#181C85 #854A18 #528518
monochromatic
#05061D #0F1151 #181C85 #2127B9 #3C42DC

Accessibility & contrast

On white

13.60
#181C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#181C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C85
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C85#FFFFFF#000000##FFFFFF
##181C851.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002883
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181c85;
/* rgb */ color: rgb(24, 28, 133);
/* oklch */ color: oklch(31.7% 0.168 270.2);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#181c85',
    950: '#000000',
  },
}
SCSS
$custom: #181c85;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#181c85",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 237.798,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31652,
    "c": 0.16803,
    "h": 270.2
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#181C85
secondary
#B9B440
accent
#E63CEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181C85

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

Preview Lab → · Contrast checker → · Palette generator →

#181C85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva