#18236B#18236B

#18236B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.0% C 0.125 H 270.1°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#18236B
RGBrgb(24, 35, 107)
HSLhsl(232, 63%, 26%)
HSVhsv(232, 78%, 42%)
CMYKcmyk(77.6%, 67.3%, 0%, 58%)
CIE-LABlab(17.72, 23.03, -43.25)
CIE-LCHlch(17.72, 49.00, 298.03°)
OKLaboklab(29.99% 0.0003 -0.125)
OKLCHoklch(29.99% 0.125 270.1)
XYZxyz(3.6307, 2.4574, 14.1901)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18236B #6B6018
analogous
#184C6B #18236B #36186B
triadic
#18236B #6B1823 #236B18
tetradic
#18236B #6B184C #6B6018 #186B36
square
#18236B #6B184C #6B6018 #186B36
split-complementary
#18236B #6B3618 #4C6B18
monochromatic
#060819 #0D1339 #18236B #23339D #2E44CF

Accessibility & contrast

On white

14.08
#18236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#18236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18236B
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18236B#FFFFFF#000000##FFFFFF
##18236B1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18236b;
/* rgb */ color: rgb(24, 35, 107);
/* oklch */ color: oklch(30.0% 0.125 270.1);
Tailwind
colors: {
  custom: {
    50: '#635d96',
    500: '#18236b',
    950: '#000000',
  },
}
SCSS
$custom: #18236b;
$custom-light: #635d96;
$custom-dark: #000000;
JSON
{
  "hex": "#18236b",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 232.048,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29986,
    "c": 0.12502,
    "h": 270.1
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#18236B
secondary
#A1943E
accent
#D141E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18236B

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

Preview Lab → · Contrast checker → · Palette generator →

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