#18277F#18277F

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

Color values

HEX#18277F
RGBrgb(24, 39, 127)
HSLhsl(231, 68%, 30%)
HSVhsv(231, 81%, 50%)
CMYKcmyk(81.1%, 69.3%, 0%, 50.2%)
CIE-LABlab(20.74, 28.13, -51.15)
CIE-LCHlch(20.74, 58.38, 298.81°)
OKLaboklab(32.8% -0.0035 -0.1481)
OKLCHoklch(32.8% 0.148 268.6)
XYZxyz(4.9316, 3.1770, 20.4279)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18277F #7F7018
analogous
#185B7F #18277F #3D187F
triadic
#18277F #7F1827 #277F18
tetradic
#18277F #7F185B #7F7018 #187F3D
square
#18277F #7F185B #7F7018 #187F3D
split-complementary
#18277F #7F3D18 #5B7F18
monochromatic
#05081A #0E174C #18277F #2237B2 #3850D9

Accessibility & contrast

On white

12.84
#18277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18277F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18277F#FFFFFF#000000##FFFFFF
##18277F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18277f;
/* rgb */ color: rgb(24, 39, 127);
/* oklch */ color: oklch(32.8% 0.148 268.6);
Tailwind
colors: {
  custom: {
    50: '#6861a5',
    500: '#18277f',
    950: '#000000',
  },
}
SCSS
$custom: #18277f;
$custom-light: #6861a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18277f",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 231.262,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.14813,
    "h": 268.6
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#18277F
secondary
#B3A23F
accent
#D23DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18277F

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

Preview Lab → · Contrast checker → · Palette generator →

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