#181C95#181C95

#181C95 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.188 H 269.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#181C95
RGBrgb(24, 28, 149)
HSLhsl(238, 72%, 34%)
HSVhsv(238, 84%, 58%)
CMYKcmyk(83.9%, 81.2%, 0%, 41.6%)
CIE-LABlab(20.80, 42.80, -64.80)
CIE-LCHlch(20.80, 77.66, 303.44°)
OKLaboklab(33.57% -0.0025 -0.1877)
OKLCHoklch(33.57% 0.188 269.2)
XYZxyz(6.2149, 3.1939, 28.7169)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C95 #959118
analogous
#185B95 #181C95 #531895
triadic
#181C95 #95181C #1C9518
tetradic
#181C95 #95185B #959118 #189553
square
#181C95 #95185B #959118 #189553
split-complementary
#181C95 #955318 #5B9518
monochromatic
#07082C #101260 #181C95 #2026CA #464BE1

Accessibility & contrast

On white

12.81
#181C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#181C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C95
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C95#FFFFFF#000000##FFFFFF
##181C951.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002B93
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #181c95;
/* rgb */ color: rgb(24, 28, 149);
/* oklch */ color: oklch(33.6% 0.188 269.2);
Tailwind
colors: {
  custom: {
    50: '#6f5bb5',
    500: '#181c95',
    950: '#000000',
  },
}
SCSS
$custom: #181c95;
$custom-light: #6f5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#181c95",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 238.08,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.18772,
    "h": 269.2
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#181C95
secondary
#C2BE46
accent
#E939EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181C95

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

Preview Lab → · Contrast checker → · Palette generator →

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