#18237C#18237C

#18237C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.149 H 269.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#18237C
RGBrgb(24, 35, 124)
HSLhsl(233, 68%, 29%)
HSVhsv(233, 81%, 49%)
CMYKcmyk(80.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(19.44, 29.66, -51.39)
CIE-LCHlch(19.44, 59.33, 299.99°)
OKLaboklab(31.76% -0.0011 -0.1488)
OKLCHoklch(31.76% 0.149 269.6)
XYZxyz(4.6146, 2.8510, 19.3720)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18237C #7C7118
analogous
#18557C #18237C #3F187C
triadic
#18237C #7C1823 #237C18
tetradic
#18237C #7C1855 #7C7118 #187C3F
square
#18237C #7C1855 #7C7118 #187C3F
split-complementary
#18237C #7C3F18 #557C18
monochromatic
#05071A #0E1549 #18237C #2231AF #3648D8

Accessibility & contrast

On white

13.37
#18237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18237C
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18237C#FFFFFF#000000##FFFFFF
##18237C1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18237c;
/* rgb */ color: rgb(24, 35, 124);
/* oklch */ color: oklch(31.8% 0.149 269.6);
Tailwind
colors: {
  custom: {
    50: '#685ea3',
    500: '#18237c',
    950: '#000000',
  },
}
SCSS
$custom: #18237c;
$custom-light: #685ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#18237c",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 233.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31756,
    "c": 0.1488,
    "h": 269.6
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#18237C
secondary
#B1A43F
accent
#D73DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18237C

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

Preview Lab → · Contrast checker → · Palette generator →

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