#181D68#181D68

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

Color values

HEX#181D68
RGBrgb(24, 29, 104)
HSLhsl(236, 63%, 25%)
HSVhsv(236, 77%, 41%)
CMYKcmyk(76.9%, 72.1%, 0%, 59.2%)
CIE-LABlab(15.86, 26.01, -44.35)
CIE-LCHlch(15.86, 51.41, 300.39°)
OKLaboklab(28.54% 0.0046 -0.1283)
OKLCHoklch(28.54% 0.128 272.1)
XYZxyz(3.3139, 2.0721, 13.3193)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D68 #686318
analogous
#184568 #181D68 #3B1868
triadic
#181D68 #68181D #1D6818
tetradic
#181D68 #681845 #686318 #18683B
square
#181D68 #681845 #686318 #18683B
split-complementary
#181D68 #683B18 #456818
monochromatic
#060719 #0D0F36 #181D68 #232B9A #2F39CB

Accessibility & contrast

On white

14.85
#181D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D68
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D68#FFFFFF#000000##FFFFFF
##181D681.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181d68;
/* rgb */ color: rgb(24, 29, 104);
/* oklch */ color: oklch(28.5% 0.128 272.1);
Tailwind
colors: {
  custom: {
    50: '#635994',
    500: '#181d68',
    950: '#000000',
  },
}
SCSS
$custom: #181d68;
$custom-light: #635994;
$custom-dark: #000000;
JSON
{
  "hex": "#181d68",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 236.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28535,
    "c": 0.12834,
    "h": 272.1
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#181D68
secondary
#9E983E
accent
#DB42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181D68

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

Preview Lab → · Contrast checker → · Palette generator →

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