#18278F#18278F

#18278F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.169 H 268.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#18278F
RGBrgb(24, 39, 143)
HSLhsl(232, 71%, 33%)
HSVhsv(232, 83%, 56%)
CMYKcmyk(83.2%, 72.7%, 0%, 43.9%)
CIE-LABlab(22.40, 34.21, -58.45)
CIE-LCHlch(22.40, 67.72, 300.34°)
OKLaboklab(34.5% -0.005 -0.1694)
OKLCHoklch(34.5% 0.169 268.3)
XYZxyz(6.0584, 3.6277, 26.3622)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18278F #8F8018
analogous
#18628F #18278F #44188F
triadic
#18278F #8F1827 #278F18
tetradic
#18278F #8F1862 #8F8018 #188F44
square
#18278F #8F1862 #8F8018 #188F44
split-complementary
#18278F #8F4418 #628F18
monochromatic
#060A26 #0F195B #18278F #2135C3 #4256DF

Accessibility & contrast

On white

12.17
#18278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#18278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18278F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18278F#FFFFFF#000000##FFFFFF
##18278F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18278f;
/* rgb */ color: rgb(24, 39, 143);
/* oklch */ color: oklch(34.5% 0.169 268.3);
Tailwind
colors: {
  custom: {
    50: '#6d61b1',
    500: '#18278f',
    950: '#000000',
  },
}
SCSS
$custom: #18278f;
$custom-light: #6d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18278f",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 232.437,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34499,
    "c": 0.16943,
    "h": 268.3
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#18278F
secondary
#C0B043
accent
#D73AEE
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #18278F

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

Preview Lab → · Contrast checker → · Palette generator →

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