#181F68#181F68

#181F68 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.9% C 0.126 H 271.5°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#181F68
RGBrgb(24, 31, 104)
HSLhsl(235, 63%, 25%)
HSVhsv(235, 77%, 41%)
CMYKcmyk(76.9%, 70.2%, 0%, 59.2%)
CIE-LABlab(16.37, 24.64, -43.51)
CIE-LCHlch(16.37, 50.00, 299.52°)
OKLaboklab(28.91% 0.0033 -0.1258)
OKLCHoklch(28.91% 0.126 271.5)
XYZxyz(3.3645, 2.1733, 13.3362)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F68 #686118
analogous
#184768 #181F68 #391868
triadic
#181F68 #68181F #1F6818
tetradic
#181F68 #681847 #686118 #186839
square
#181F68 #681847 #686118 #186839
split-complementary
#181F68 #683918 #476818
monochromatic
#060719 #0D1036 #181F68 #232E9A #2F3DCB

Accessibility & contrast

On white

14.64
#181F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F68
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F68#FFFFFF#000000##FFFFFF
##181F681.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181f68;
/* rgb */ color: rgb(24, 31, 104);
/* oklch */ color: oklch(28.9% 0.126 271.5);
Tailwind
colors: {
  custom: {
    50: '#635a94',
    500: '#181f68',
    950: '#000000',
  },
}
SCSS
$custom: #181f68;
$custom-light: #635a94;
$custom-dark: #000000;
JSON
{
  "hex": "#181f68",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 234.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28906,
    "c": 0.12584,
    "h": 271.5
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#181F68
secondary
#9E963E
accent
#D742E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F68

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

Preview Lab → · Contrast checker → · Palette generator →

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