#18277C#18277C

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

Color values

HEX#18277C
RGBrgb(24, 39, 124)
HSLhsl(231, 68%, 29%)
HSVhsv(231, 81%, 49%)
CMYKcmyk(80.6%, 68.5%, 0%, 51.4%)
CIE-LABlab(20.44, 26.96, -49.74)
CIE-LCHlch(20.44, 56.58, 298.46°)
OKLaboklab(32.49% -0.0033 -0.144)
OKLCHoklch(32.49% 0.144 268.7)
XYZxyz(4.7390, 3.0999, 19.4135)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18277C #7C6D18
analogous
#18597C #18277C #3B187C
triadic
#18277C #7C1827 #277C18
tetradic
#18277C #7C1859 #7C6D18 #187C3B
square
#18277C #7C1859 #7C6D18 #187C3B
split-complementary
#18277C #7C3B18 #597C18
monochromatic
#05081A #0E1749 #18277C #2237AF #364FD8

Accessibility & contrast

On white

12.96
#18277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18277C
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18277C#FFFFFF#000000##FFFFFF
##18277C1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18277c;
/* rgb */ color: rgb(24, 39, 124);
/* oklch */ color: oklch(32.5% 0.144 268.7);
Tailwind
colors: {
  custom: {
    50: '#6761a3',
    500: '#18277c',
    950: '#000000',
  },
}
SCSS
$custom: #18277c;
$custom-light: #6761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18277c",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 231,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32485,
    "c": 0.14401,
    "h": 268.7
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#18277C
secondary
#B1A03F
accent
#D03DEA
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18277C

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

Preview Lab → · Contrast checker → · Palette generator →

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