#18236D#18236D

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

Color values

HEX#18236D
RGBrgb(24, 35, 109)
HSLhsl(232, 64%, 26%)
HSVhsv(232, 78%, 43%)
CMYKcmyk(78%, 67.9%, 0%, 57.3%)
CIE-LABlab(17.92, 23.82, -44.24)
CIE-LCHlch(17.92, 50.24, 298.30°)
OKLaboklab(30.19% 0.0001 -0.1279)
OKLCHoklch(30.19% 0.128 270.1)
XYZxyz(3.7371, 2.5000, 14.7506)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18236D #6D6218
analogous
#184D6D #18236D #37186D
triadic
#18236D #6D1823 #236D18
tetradic
#18236D #6D184D #6D6218 #186D37
square
#18236D #6D184D #6D6218 #186D37
split-complementary
#18236D #6D3718 #4D6D18
monochromatic
#060819 #0D133B #18236D #23339F #2E43D1

Accessibility & contrast

On white

14.00
#18236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18236D
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18236D#FFFFFF#000000##FFFFFF
##18236D1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18236d;
/* rgb */ color: rgb(24, 35, 109);
/* oklch */ color: oklch(30.2% 0.128 270.1);
Tailwind
colors: {
  custom: {
    50: '#645d98',
    500: '#18236d',
    950: '#000000',
  },
}
SCSS
$custom: #18236d;
$custom-light: #645d98;
$custom-dark: #000000;
JSON
{
  "hex": "#18236d",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 232.235,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30188,
    "c": 0.1279,
    "h": 270.1
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18236D

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

Preview Lab → · Contrast checker → · Palette generator →

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