#181874#181874

#181874 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.150 H 272.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#181874
RGBrgb(24, 24, 116)
HSLhsl(240, 66%, 27%)
HSVhsv(240, 79%, 45%)
CMYKcmyk(79.3%, 79.3%, 0%, 54.5%)
CIE-LABlab(16.04, 33.66, -51.86)
CIE-LCHlch(16.04, 61.83, 302.99°)
OKLaboklab(29.06% 0.0053 -0.1501)
OKLCHoklch(29.06% 0.15 272)
XYZxyz(3.8546, 2.1080, 16.7233)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181874 #747418
analogous
#184674 #181874 #461874
triadic
#181874 #741818 #187418
tetradic
#181874 #741846 #747418 #187446
square
#181874 #741846 #747418 #187446
split-complementary
#181874 #744618 #467418
monochromatic
#050519 #0E0E41 #181874 #2222A7 #3232D5

Accessibility & contrast

On white

14.77
#181874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181874
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181874#FFFFFF#000000##FFFFFF
##1818741.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181874;
/* rgb */ color: rgb(24, 24, 116);
/* oklch */ color: oklch(29.1% 0.150 272.0);
Tailwind
colors: {
  custom: {
    50: '#67569d',
    500: '#181874',
    950: '#000000',
  },
}
SCSS
$custom: #181874;
$custom-light: #67569d;
$custom-dark: #000000;
JSON
{
  "hex": "#181874",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29064,
    "c": 0.1502,
    "h": 272
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#181874
secondary
#A9A93F
accent
#E93FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181874

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

Preview Lab → · Contrast checker → · Palette generator →

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