#18298F#18298F

#18298F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.167 H 268.0°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#18298F
RGBrgb(24, 41, 143)
HSLhsl(231, 71%, 33%)
HSVhsv(231, 83%, 56%)
CMYKcmyk(83.2%, 71.3%, 0%, 43.9%)
CIE-LABlab(22.87, 32.92, -57.67)
CIE-LCHlch(22.87, 66.41, 299.72°)
OKLaboklab(34.84% -0.0059 -0.1671)
OKLCHoklch(34.84% 0.167 268)
XYZxyz(6.1258, 3.7625, 26.3847)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18298F #8F7E18
analogous
#18648F #18298F #43188F
triadic
#18298F #8F1829 #298F18
tetradic
#18298F #8F1864 #8F7E18 #188F43
square
#18298F #8F1864 #8F7E18 #188F43
split-complementary
#18298F #8F4318 #648F18
monochromatic
#060B26 #0F1A5B #18298F #2138C3 #4259DF

Accessibility & contrast

On white

11.98
#18298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#18298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18298F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18298F#FFFFFF#000000##FFFFFF
##18298F1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #18298f;
/* rgb */ color: rgb(24, 41, 143);
/* oklch */ color: oklch(34.8% 0.167 268.0);
Tailwind
colors: {
  custom: {
    50: '#6c63b1',
    500: '#18298f',
    950: '#000000',
  },
}
SCSS
$custom: #18298f;
$custom-light: #6c63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18298f",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 231.429,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.1672,
    "h": 268
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#18298F
secondary
#C0AE43
accent
#D43AEE
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #18298F

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

Preview Lab → · Contrast checker → · Palette generator →

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