#18237D#18237D

#18237D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.150 H 269.5°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#18237D
RGBrgb(24, 35, 125)
HSLhsl(233, 68%, 29%)
HSVhsv(233, 81%, 49%)
CMYKcmyk(80.8%, 72%, 0%, 51%)
CIE-LABlab(19.54, 30.04, -51.85)
CIE-LCHlch(19.54, 59.92, 300.08°)
OKLaboklab(31.86% -0.0012 -0.1501)
OKLCHoklch(31.86% 0.15 269.5)
XYZxyz(4.6781, 2.8764, 19.7067)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18237D #7D7218
analogous
#18567D #18237D #40187D
triadic
#18237D #7D1823 #237D18
tetradic
#18237D #7D1856 #7D7218 #187D40
square
#18237D #7D1856 #7D7218 #187D40
split-complementary
#18237D #7D4018 #567D18
monochromatic
#05071A #0E154A #18237D #2231B0 #3748D9

Accessibility & contrast

On white

13.33
#18237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#18237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18237D
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18237D#FFFFFF#000000##FFFFFF
##18237D1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18237d;
/* rgb */ color: rgb(24, 35, 125);
/* oklch */ color: oklch(31.9% 0.150 269.5);
Tailwind
colors: {
  custom: {
    50: '#685ea4',
    500: '#18237d',
    950: '#000000',
  },
}
SCSS
$custom: #18237d;
$custom-light: #685ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#18237d",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 233.465,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31863,
    "c": 0.15016,
    "h": 269.5
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#18237D
secondary
#B2A53F
accent
#D83DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18237D

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

Preview Lab → · Contrast checker → · Palette generator →

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