#18277B#18277B

#18277B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.143 H 268.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#18277B
RGBrgb(24, 39, 123)
HSLhsl(231, 67%, 29%)
HSVhsv(231, 80%, 48%)
CMYKcmyk(80.5%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.34, 26.57, -49.27)
CIE-LCHlch(20.34, 55.97, 298.34°)
OKLaboklab(32.38% -0.0033 -0.1426)
OKLCHoklch(32.38% 0.143 268.7)
XYZxyz(4.6761, 3.0748, 19.0821)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18277B #7B6C18
analogous
#18597B #18277B #3B187B
triadic
#18277B #7B1827 #277B18
tetradic
#18277B #7B1859 #7B6C18 #187B3B
square
#18277B #7B1859 #7B6C18 #187B3B
split-complementary
#18277B #7B3B18 #597B18
monochromatic
#05081A #0E1748 #18277B #2237AE #364ED8

Accessibility & contrast

On white

13.00
#18277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#18277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18277B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18277B#FFFFFF#000000##FFFFFF
##18277B1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18277b;
/* rgb */ color: rgb(24, 39, 123);
/* oklch */ color: oklch(32.4% 0.143 268.7);
Tailwind
colors: {
  custom: {
    50: '#6761a2',
    500: '#18277b',
    950: '#000000',
  },
}
SCSS
$custom: #18277b;
$custom-light: #6761a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18277b",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 230.909,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32383,
    "c": 0.14262,
    "h": 268.7
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#18277B
secondary
#B09F3F
accent
#D03EEA
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18277B

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

Preview Lab → · Contrast checker → · Palette generator →

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