#18237B#18237B

#18237B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.147 H 269.6°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#18237B
RGBrgb(24, 35, 123)
HSLhsl(233, 67%, 29%)
HSVhsv(233, 80%, 48%)
CMYKcmyk(80.5%, 71.5%, 0%, 51.8%)
CIE-LABlab(19.33, 29.28, -50.92)
CIE-LCHlch(19.33, 58.74, 299.89°)
OKLaboklab(31.65% -0.001 -0.1474)
OKLCHoklch(31.65% 0.147 269.6)
XYZxyz(4.5516, 2.8258, 19.0406)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18237B #7B7018
analogous
#18557B #18237B #3F187B
triadic
#18237B #7B1823 #237B18
tetradic
#18237B #7B1855 #7B7018 #187B3F
square
#18237B #7B1855 #7B7018 #187B3F
split-complementary
#18237B #7B3F18 #557B18
monochromatic
#05071A #0E1448 #18237B #2232AE #3648D8

Accessibility & contrast

On white

13.42
#18237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18237B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18237B#FFFFFF#000000##FFFFFF
##18237B1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18237b;
/* rgb */ color: rgb(24, 35, 123);
/* oklch */ color: oklch(31.6% 0.147 269.6);
Tailwind
colors: {
  custom: {
    50: '#685ea2',
    500: '#18237b',
    950: '#000000',
  },
}
SCSS
$custom: #18237b;
$custom-light: #685ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#18237b",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 233.333,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31648,
    "c": 0.14744,
    "h": 269.6
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#18237B
secondary
#B0A33F
accent
#D73EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18237B

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

Preview Lab → · Contrast checker → · Palette generator →

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