#18236C#18236C

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

Color values

HEX#18236C
RGBrgb(24, 35, 108)
HSLhsl(232, 64%, 26%)
HSVhsv(232, 78%, 42%)
CMYKcmyk(77.8%, 67.6%, 0%, 57.6%)
CIE-LABlab(17.82, 23.42, -43.75)
CIE-LCHlch(17.82, 49.62, 298.17°)
OKLaboklab(30.09% 0.0002 -0.1265)
OKLCHoklch(30.09% 0.126 270.1)
XYZxyz(3.6836, 2.4786, 14.4687)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18236C #6C6118
analogous
#184D6C #18236C #37186C
triadic
#18236C #6C1823 #236C18
tetradic
#18236C #6C184D #6C6118 #186C37
square
#18236C #6C184D #6C6118 #186C37
split-complementary
#18236C #6C3718 #4D6C18
monochromatic
#060819 #0D133A #18236C #23339E #2E43D0

Accessibility & contrast

On white

14.04
#18236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#18236C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18236C
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18236C#FFFFFF#000000##FFFFFF
##18236C1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18236c;
/* rgb */ color: rgb(24, 35, 108);
/* oklch */ color: oklch(30.1% 0.126 270.1);
Tailwind
colors: {
  custom: {
    50: '#635d97',
    500: '#18236c',
    950: '#000000',
  },
}
SCSS
$custom: #18236c;
$custom-light: #635d97;
$custom-dark: #000000;
JSON
{
  "hex": "#18236c",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 232.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30087,
    "c": 0.12647,
    "h": 270.1
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#18236C
secondary
#A2953E
accent
#D141E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18236C

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

Preview Lab → · Contrast checker → · Palette generator →

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