#18277A#18277A

#18277A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.141 H 268.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#18277A
RGBrgb(24, 39, 122)
HSLhsl(231, 67%, 29%)
HSVhsv(231, 80%, 48%)
CMYKcmyk(80.3%, 68%, 0%, 52.2%)
CIE-LABlab(20.24, 26.18, -48.79)
CIE-LCHlch(20.24, 55.37, 298.21°)
OKLaboklab(32.28% -0.0032 -0.1412)
OKLCHoklch(32.28% 0.141 268.7)
XYZxyz(4.6138, 3.0499, 18.7541)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18277A #7A6B18
analogous
#18587A #18277A #3A187A
triadic
#18277A #7A1827 #277A18
tetradic
#18277A #7A1858 #7A6B18 #187A3A
square
#18277A #7A1858 #7A6B18 #187A3A
split-complementary
#18277A #7A3A18 #587A18
monochromatic
#05081A #0E1747 #18277A #2237AD #354ED7

Accessibility & contrast

On white

13.04
#18277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#18277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18277A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18277A#FFFFFF#000000##FFFFFF
##18277A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18277a;
/* rgb */ color: rgb(24, 39, 122);
/* oklch */ color: oklch(32.3% 0.141 268.7);
Tailwind
colors: {
  custom: {
    50: '#6761a1',
    500: '#18277a',
    950: '#000000',
  },
}
SCSS
$custom: #18277a;
$custom-light: #6761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#18277a",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 230.816,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32281,
    "c": 0.14123,
    "h": 268.7
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#18277A
secondary
#AF9E3F
accent
#D03EEA
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18277A

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

Preview Lab → · Contrast checker → · Palette generator →

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