#181895#181895

#181895 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.191 H 269.5°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#181895
RGBrgb(24, 24, 149)
HSLhsl(240, 72%, 34%)
HSVhsv(240, 84%, 58%)
CMYKcmyk(83.9%, 83.9%, 0%, 41.6%)
CIE-LABlab(20.11, 44.82, -65.96)
CIE-LCHlch(20.11, 79.75, 304.20°)
OKLaboklab(33.08% -0.0017 -0.191)
OKLCHoklch(33.08% 0.191 269.5)
XYZxyz(6.1263, 3.0167, 28.6873)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181895 #959518
analogous
#185795 #181895 #571895
triadic
#181895 #951818 #189518
tetradic
#181895 #951857 #959518 #189557
square
#181895 #951857 #959518 #189557
split-complementary
#181895 #955718 #579518
monochromatic
#07072C #101060 #181895 #2020CA #4646E1

Accessibility & contrast

On white

13.10
#181895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#181895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181895
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181895#FFFFFF#000000##FFFFFF
##1818951.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003798
Deuteranopia (green-blind)
#002A93
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #181895;
/* rgb */ color: rgb(24, 24, 149);
/* oklch */ color: oklch(33.1% 0.191 269.5);
Tailwind
colors: {
  custom: {
    50: '#7059b6',
    500: '#181895',
    950: '#000000',
  },
}
SCSS
$custom: #181895;
$custom-light: #7059b6;
$custom-dark: #000000;
JSON
{
  "hex": "#181895",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33084,
    "c": 0.19097,
    "h": 269.5
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#181895
secondary
#C2C246
accent
#EF39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181895

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

Preview Lab → · Contrast checker → · Palette generator →

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