#18237F#18237F

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

Color values

HEX#18237F
RGBrgb(24, 35, 127)
HSLhsl(234, 68%, 30%)
HSVhsv(234, 81%, 50%)
CMYKcmyk(81.1%, 72.4%, 0%, 50.2%)
CIE-LABlab(19.75, 30.80, -52.77)
CIE-LCHlch(19.75, 61.10, 300.27°)
OKLaboklab(32.08% -0.0015 -0.1528)
OKLCHoklch(32.08% 0.153 269.5)
XYZxyz(4.8072, 2.9280, 20.3864)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18237F #7F7418
analogous
#18577F #18237F #40187F
triadic
#18237F #7F1823 #237F18
tetradic
#18237F #7F1857 #7F7418 #187F40
square
#18237F #7F1857 #7F7418 #187F40
split-complementary
#18237F #7F4018 #577F18
monochromatic
#05071A #0E154C #18237F #2231B2 #3849D9

Accessibility & contrast

On white

13.24
#18237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#18237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18237F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18237F#FFFFFF#000000##FFFFFF
##18237F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #18237f;
/* rgb */ color: rgb(24, 35, 127);
/* oklch */ color: oklch(32.1% 0.153 269.5);
Tailwind
colors: {
  custom: {
    50: '#695ea5',
    500: '#18237f',
    950: '#000000',
  },
}
SCSS
$custom: #18237f;
$custom-light: #695ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#18237f",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 233.592,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.15285,
    "h": 269.5
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18237F

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

Preview Lab → · Contrast checker → · Palette generator →

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