#18297D#18297D

#18297D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.143 H 268.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#18297D
RGBrgb(24, 41, 125)
HSLhsl(230, 68%, 29%)
HSVhsv(230, 81%, 49%)
CMYKcmyk(80.8%, 67.2%, 0%, 51%)
CIE-LABlab(21.06, 25.98, -49.36)
CIE-LCHlch(21.06, 55.78, 297.76°)
OKLaboklab(32.97% -0.0046 -0.1428)
OKLCHoklch(32.97% 0.143 268.2)
XYZxyz(4.8700, 3.2602, 19.7707)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18297D #7D6C18
analogous
#185C7D #18297D #3A187D
triadic
#18297D #7D1829 #297D18
tetradic
#18297D #7D185C #7D6C18 #187D3A
square
#18297D #7D185C #7D6C18 #187D3A
split-complementary
#18297D #7D3A18 #5C7D18
monochromatic
#05081A #0E184A #18297D #223AB0 #3752D9

Accessibility & contrast

On white

12.71
#18297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#18297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18297D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18297D#FFFFFF#000000##FFFFFF
##18297D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18297d;
/* rgb */ color: rgb(24, 41, 125);
/* oklch */ color: oklch(33.0% 0.143 268.2);
Tailwind
colors: {
  custom: {
    50: '#6762a4',
    500: '#18297d',
    950: '#000000',
  },
}
SCSS
$custom: #18297d;
$custom-light: #6762a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18297d",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 229.901,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32967,
    "c": 0.14292,
    "h": 268.2
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#18297D
secondary
#B29E3F
accent
#CD3DEB
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18297D

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

Preview Lab → · Contrast checker → · Palette generator →

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