#18236E#18236E

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

Color values

HEX#18236E
RGBrgb(24, 35, 110)
HSLhsl(232, 64%, 26%)
HSVhsv(232, 78%, 43%)
CMYKcmyk(78.2%, 68.2%, 0%, 56.9%)
CIE-LABlab(18.02, 24.22, -44.73)
CIE-LCHlch(18.02, 50.86, 298.43°)
OKLaboklab(30.29% 0.0001 -0.1293)
OKLCHoklch(30.29% 0.129 270)
XYZxyz(3.7912, 2.5216, 15.0357)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18236E #6E6318
analogous
#184E6E #18236E #38186E
triadic
#18236E #6E1823 #236E18
tetradic
#18236E #6E184E #6E6318 #186E38
square
#18236E #6E184E #6E6318 #186E38
split-complementary
#18236E #6E3818 #4E6E18
monochromatic
#050819 #0D133C #18236E #2333A0 #2F44D2

Accessibility & contrast

On white

13.96
#18236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18236E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18236E#FFFFFF#000000##FFFFFF
##18236E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18236e;
/* rgb */ color: rgb(24, 35, 110);
/* oklch */ color: oklch(30.3% 0.129 270.0);
Tailwind
colors: {
  custom: {
    50: '#645e98',
    500: '#18236e',
    950: '#000000',
  },
}
SCSS
$custom: #18236e;
$custom-light: #645e98;
$custom-dark: #000000;
JSON
{
  "hex": "#18236e",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 232.326,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3029,
    "c": 0.12934,
    "h": 270
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#18236E
secondary
#A4973E
accent
#D241E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18236E

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

Preview Lab → · Contrast checker → · Palette generator →

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