#181768#181768

#181768 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.5% C 0.135 H 273.5°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#181768
RGBrgb(24, 23, 104)
HSLhsl(241, 64%, 25%)
HSVhsv(241, 78%, 41%)
CMYKcmyk(76.9%, 77.9%, 0%, 59.2%)
CIE-LABlab(14.43, 29.94, -46.70)
CIE-LCHlch(14.43, 55.47, 302.67°)
OKLaboklab(27.51% 0.0083 -0.1351)
OKLCHoklch(27.51% 0.135 273.5)
XYZxyz(3.1809, 1.8061, 13.2750)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181768 #676817
analogous
#173E68 #181768 #411768
triadic
#181768 #681817 #176818
tetradic
#181768 #68173E #676817 #176841
square
#181768 #68173E #676817 #176841
split-complementary
#181768 #684117 #3E6817
monochromatic
#060619 #0C0C36 #181768 #24229A #2F2DCC

Accessibility & contrast

On white

15.43
#181768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181768
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181768#FFFFFF#000000##FFFFFF
##1817681.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002167
Tritanopia (blue-blind)
#002E3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181768;
/* rgb */ color: rgb(24, 23, 104);
/* oklch */ color: oklch(27.5% 0.135 273.5);
Tailwind
colors: {
  custom: {
    50: '#645594',
    500: '#181768',
    950: '#000000',
  },
}
SCSS
$custom: #181768;
$custom-light: #645594;
$custom-dark: #000000;
JSON
{
  "hex": "#181768",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 240.741,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27512,
    "c": 0.13534,
    "h": 273.5
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#181768
secondary
#9D9E3D
accent
#E741E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181768

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

Preview Lab → · Contrast checker → · Palette generator →

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