#18236A#18236A

#18236A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.124 H 270.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#18236A
RGBrgb(24, 35, 106)
HSLhsl(232, 63%, 25%)
HSVhsv(232, 77%, 42%)
CMYKcmyk(77.4%, 67%, 0%, 58.4%)
CIE-LABlab(17.63, 22.63, -42.76)
CIE-LCHlch(17.63, 48.38, 297.88°)
OKLaboklab(29.89% 0.0003 -0.1236)
OKLCHoklch(29.89% 0.124 270.1)
XYZxyz(3.5783, 2.4365, 13.9146)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18236A #6A5F18
analogous
#184C6A #18236A #36186A
triadic
#18236A #6A1823 #236A18
tetradic
#18236A #6A184C #6A5F18 #186A36
square
#18236A #6A184C #6A5F18 #186A36
split-complementary
#18236A #6A3618 #4C6A18
monochromatic
#060819 #0D1338 #18236A #23339C #2F44CE

Accessibility & contrast

On white

14.12
#18236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18236A
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18236A#FFFFFF#000000##FFFFFF
##18236A1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18236a;
/* rgb */ color: rgb(24, 35, 106);
/* oklch */ color: oklch(29.9% 0.124 270.1);
Tailwind
colors: {
  custom: {
    50: '#635d95',
    500: '#18236a',
    950: '#000000',
  },
}
SCSS
$custom: #18236a;
$custom-light: #635d95;
$custom-dark: #000000;
JSON
{
  "hex": "#18236a",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 231.951,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29886,
    "c": 0.12357,
    "h": 270.1
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#18236A
secondary
#A0933E
accent
#D042E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18236A

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

Preview Lab → · Contrast checker → · Palette generator →

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