#18298D#18298D

#18298D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.165 H 268.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#18298D
RGBrgb(24, 41, 141)
HSLhsl(231, 71%, 32%)
HSVhsv(231, 83%, 55%)
CMYKcmyk(83%, 70.9%, 0%, 44.7%)
CIE-LABlab(22.66, 32.17, -56.77)
CIE-LCHlch(22.66, 65.25, 299.54°)
OKLaboklab(34.63% -0.0057 -0.1645)
OKLCHoklch(34.63% 0.165 268)
XYZxyz(5.9757, 3.7024, 25.5938)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18298D #8D7C18
analogous
#18648D #18298D #42188D
triadic
#18298D #8D1829 #298D18
tetradic
#18298D #8D1864 #8D7C18 #188D42
square
#18298D #8D1864 #8D7C18 #188D42
split-complementary
#18298D #8D4218 #648D18
monochromatic
#060B24 #0F1A59 #18298D #2138C1 #4158DF

Accessibility & contrast

On white

12.06
#18298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#18298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18298D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18298D#FFFFFF#000000##FFFFFF
##18298D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18298d;
/* rgb */ color: rgb(24, 41, 141);
/* oklch */ color: oklch(34.6% 0.165 268.0);
Tailwind
colors: {
  custom: {
    50: '#6c63af',
    500: '#18298d',
    950: '#000000',
  },
}
SCSS
$custom: #18298d;
$custom-light: #6c63af;
$custom-dark: #000000;
JSON
{
  "hex": "#18298d",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 231.282,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34625,
    "c": 0.16458,
    "h": 268
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#18298D
secondary
#BFAD42
accent
#D43AEE
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #18298D

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

Preview Lab → · Contrast checker → · Palette generator →

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