#18277E#18277E

#18277E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.147 H 268.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#18277E
RGBrgb(24, 39, 126)
HSLhsl(231, 68%, 29%)
HSVhsv(231, 81%, 49%)
CMYKcmyk(81%, 69%, 0%, 50.6%)
CIE-LABlab(20.64, 27.74, -50.68)
CIE-LCHlch(20.64, 57.78, 298.70°)
OKLaboklab(32.69% -0.0035 -0.1467)
OKLCHoklch(32.69% 0.147 268.6)
XYZxyz(4.8668, 3.1510, 20.0863)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18277E #7E6F18
analogous
#185A7E #18277E #3C187E
triadic
#18277E #7E1827 #277E18
tetradic
#18277E #7E185A #7E6F18 #187E3C
square
#18277E #7E185A #7E6F18 #187E3C
split-complementary
#18277E #7E3C18 #5A7E18
monochromatic
#05081A #0E174B #18277E #2237B1 #374FD9

Accessibility & contrast

On white

12.88
#18277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#18277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18277E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18277E#FFFFFF#000000##FFFFFF
##18277E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18277e;
/* rgb */ color: rgb(24, 39, 126);
/* oklch */ color: oklch(32.7% 0.147 268.6);
Tailwind
colors: {
  custom: {
    50: '#6861a4',
    500: '#18277e',
    950: '#000000',
  },
}
SCSS
$custom: #18277e;
$custom-light: #6861a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18277e",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 231.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32691,
    "c": 0.14676,
    "h": 268.6
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#18277E
secondary
#B2A23F
accent
#D13DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18277E

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

Preview Lab → · Contrast checker → · Palette generator →

#18277E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva