#181F64#181F64

#181F64 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.5% C 0.120 H 271.7°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#181F64
RGBrgb(24, 31, 100)
HSLhsl(234, 61%, 24%)
HSVhsv(234, 76%, 39%)
CMYKcmyk(76%, 69%, 0%, 60.8%)
CIE-LABlab(15.97, 23.07, -41.53)
CIE-LCHlch(15.97, 47.51, 299.05°)
OKLaboklab(28.49% 0.0036 -0.12)
OKLCHoklch(28.49% 0.12 271.7)
XYZxyz(3.1661, 2.0939, 12.2914)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F64 #645D18
analogous
#184564 #181F64 #371864
triadic
#181F64 #64181F #1F6418
tetradic
#181F64 #641845 #645D18 #186437
square
#181F64 #641845 #645D18 #186437
split-complementary
#181F64 #643718 #456418
monochromatic
#060819 #0C1033 #181F64 #242E95 #303EC7

Accessibility & contrast

On white

14.80
#181F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F64
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F64#FFFFFF#000000##FFFFFF
##181F641.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181f64;
/* rgb */ color: rgb(24, 31, 100);
/* oklch */ color: oklch(28.5% 0.120 271.7);
Tailwind
colors: {
  custom: {
    50: '#625a91',
    500: '#181f64',
    950: '#000000',
  },
}
SCSS
$custom: #181f64;
$custom-light: #625a91;
$custom-dark: #000000;
JSON
{
  "hex": "#181f64",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 234.474,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28492,
    "c": 0.12008,
    "h": 271.7
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#181F64
secondary
#9A923E
accent
#D643E4
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F64

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

Preview Lab → · Contrast checker → · Palette generator →

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