#18237A#18237A

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

Color values

HEX#18237A
RGBrgb(24, 35, 122)
HSLhsl(233, 67%, 29%)
HSVhsv(233, 80%, 48%)
CMYKcmyk(80.3%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.23, 28.89, -50.46)
CIE-LCHlch(19.23, 58.14, 299.80°)
OKLaboklab(31.54% -0.0009 -0.1461)
OKLCHoklch(31.54% 0.146 269.6)
XYZxyz(4.4894, 2.8009, 18.7126)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18237A #7A6F18
analogous
#18547A #18237A #3E187A
triadic
#18237A #7A1823 #237A18
tetradic
#18237A #7A1854 #7A6F18 #187A3E
square
#18237A #7A1854 #7A6F18 #187A3E
split-complementary
#18237A #7A3E18 #547A18
monochromatic
#05071A #0E1447 #18237A #2232AD #3547D7

Accessibility & contrast

On white

13.46
#18237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18237A
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18237A#FFFFFF#000000##FFFFFF
##18237A1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18237a;
/* rgb */ color: rgb(24, 35, 122);
/* oklch */ color: oklch(31.5% 0.146 269.6);
Tailwind
colors: {
  custom: {
    50: '#675ea1',
    500: '#18237a',
    950: '#000000',
  },
}
SCSS
$custom: #18237a;
$custom-light: #675ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#18237a",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 233.265,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.14608,
    "h": 269.6
  },
  "luminance": 0.02801
}

Semantic roles & 50–950 ramp

primary
#18237A
secondary
#AFA23F
accent
#D73EEA
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18237A

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

Preview Lab → · Contrast checker → · Palette generator →

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