#18237E#18237E

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

Color values

HEX#18237E
RGBrgb(24, 35, 126)
HSLhsl(234, 68%, 29%)
HSVhsv(234, 81%, 49%)
CMYKcmyk(81%, 72.2%, 0%, 50.6%)
CIE-LABlab(19.65, 30.42, -52.31)
CIE-LCHlch(19.65, 60.51, 300.18°)
OKLaboklab(31.97% -0.0013 -0.1515)
OKLCHoklch(31.97% 0.152 269.5)
XYZxyz(4.7423, 2.9021, 20.0448)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18237E #7E7318
analogous
#18567E #18237E #40187E
triadic
#18237E #7E1823 #237E18
tetradic
#18237E #7E1856 #7E7318 #187E40
square
#18237E #7E1856 #7E7318 #187E40
split-complementary
#18237E #7E4018 #567E18
monochromatic
#05071A #0E154B #18237E #2231B1 #3749D9

Accessibility & contrast

On white

13.29
#18237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18237E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18237E#FFFFFF#000000##FFFFFF
##18237E1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #18237e;
/* rgb */ color: rgb(24, 35, 126);
/* oklch */ color: oklch(32.0% 0.151 269.5);
Tailwind
colors: {
  custom: {
    50: '#685ea4',
    500: '#18237e',
    950: '#000000',
  },
}
SCSS
$custom: #18237e;
$custom-light: #685ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#18237e",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 233.529,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31971,
    "c": 0.1515,
    "h": 269.5
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18237E

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

Preview Lab → · Contrast checker → · Palette generator →

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