#18236F#18236F

#18236F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.131 H 270.0°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#18236F
RGBrgb(24, 35, 111)
HSLhsl(232, 64%, 26%)
HSVhsv(232, 78%, 44%)
CMYKcmyk(78.4%, 68.5%, 0%, 56.5%)
CIE-LABlab(18.11, 24.61, -45.21)
CIE-LCHlch(18.11, 51.48, 298.56°)
OKLaboklab(30.39% 0 -0.1308)
OKLCHoklch(30.39% 0.131 270)
XYZxyz(3.8460, 2.5435, 15.3241)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18236F #6F6418
analogous
#184F6F #18236F #39186F
triadic
#18236F #6F1823 #236F18
tetradic
#18236F #6F184F #6F6418 #186F39
square
#18236F #6F184F #6F6418 #186F39
split-complementary
#18236F #6F3918 #4F6F18
monochromatic
#050819 #0D133D #18236F #2333A1 #2F44D2

Accessibility & contrast

On white

13.92
#18236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18236F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18236F#FFFFFF#000000##FFFFFF
##18236F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18236f;
/* rgb */ color: rgb(24, 35, 111);
/* oklch */ color: oklch(30.4% 0.131 270.0);
Tailwind
colors: {
  custom: {
    50: '#645e99',
    500: '#18236f',
    950: '#000000',
  },
}
SCSS
$custom: #18236f;
$custom-light: #645e99;
$custom-dark: #000000;
JSON
{
  "hex": "#18236f",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 232.414,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30392,
    "c": 0.13076,
    "h": 270
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#18236F
secondary
#A5983E
accent
#D240E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18236F

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

Preview Lab → · Contrast checker → · Palette generator →

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