#18277D#18277D

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

Color values

HEX#18277D
RGBrgb(24, 39, 125)
HSLhsl(231, 68%, 29%)
HSVhsv(231, 81%, 49%)
CMYKcmyk(80.8%, 68.8%, 0%, 51%)
CIE-LABlab(20.54, 27.35, -50.21)
CIE-LCHlch(20.54, 57.18, 298.58°)
OKLaboklab(32.59% -0.0034 -0.1453)
OKLCHoklch(32.59% 0.145 268.7)
XYZxyz(4.8026, 3.1254, 19.7482)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18277D #7D6E18
analogous
#185A7D #18277D #3C187D
triadic
#18277D #7D1827 #277D18
tetradic
#18277D #7D185A #7D6E18 #187D3C
square
#18277D #7D185A #7D6E18 #187D3C
split-complementary
#18277D #7D3C18 #5A7D18
monochromatic
#05081A #0E174A #18277D #2237B0 #374FD9

Accessibility & contrast

On white

12.92
#18277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18277D
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18277D#FFFFFF#000000##FFFFFF
##18277D1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18277d;
/* rgb */ color: rgb(24, 39, 125);
/* oklch */ color: oklch(32.6% 0.145 268.7);
Tailwind
colors: {
  custom: {
    50: '#6861a4',
    500: '#18277d',
    950: '#000000',
  },
}
SCSS
$custom: #18277d;
$custom-light: #6861a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18277d",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 231.089,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32588,
    "c": 0.14539,
    "h": 268.7
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18277D

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

Preview Lab → · Contrast checker → · Palette generator →

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