#18388E#18388E

#18388E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.148 H 264.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#18388E
RGBrgb(24, 56, 142)
HSLhsl(224, 71%, 33%)
HSVhsv(224, 83%, 56%)
CMYKcmyk(83.1%, 60.6%, 0%, 44.3%)
CIE-LABlab(26.66, 22.36, -50.83)
CIE-LCHlch(26.66, 55.53, 293.75°)
OKLaboklab(37.6% -0.0139 -0.147)
OKLCHoklch(37.6% 0.148 264.6)
XYZxyz(6.6716, 4.9747, 26.1945)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18388E #8E6E18
analogous
#18738E #18388E #33188E
triadic
#18388E #8E1838 #388E18
tetradic
#18388E #8E1873 #8E6E18 #188E33
square
#18388E #8E1873 #8E6E18 #188E33
split-complementary
#18388E #8E3318 #738E18
monochromatic
#060F25 #0F235A #18388E #214DC2 #416CDF

Accessibility & contrast

On white

10.53
#18388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#18388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18388E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18388E#FFFFFF#000000##FFFFFF
##18388E1.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #18388e;
/* rgb */ color: rgb(24, 56, 142);
/* oklch */ color: oklch(37.6% 0.148 264.6);
Tailwind
colors: {
  custom: {
    50: '#6b6eb0',
    500: '#18388e',
    950: '#000000',
  },
}
SCSS
$custom: #18388e;
$custom-light: #6b6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#18388e",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 223.729,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37603,
    "c": 0.14762,
    "h": 264.6
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#18388E
secondary
#C09E42
accent
#BD3AEE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #18388E

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

Preview Lab → · Contrast checker → · Palette generator →

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