#18388B#18388B

#18388B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.143 H 264.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#18388B
RGBrgb(24, 56, 139)
HSLhsl(223, 71%, 32%)
HSVhsv(223, 83%, 55%)
CMYKcmyk(82.7%, 59.7%, 0%, 45.5%)
CIE-LABlab(26.41, 21.15, -49.39)
CIE-LCHlch(26.41, 53.73, 293.18°)
OKLaboklab(37.33% -0.014 -0.1427)
OKLCHoklch(37.33% 0.143 264.4)
XYZxyz(6.4494, 4.8858, 25.0242)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18388B #8B6B18
analogous
#18728B #18388B #31188B
triadic
#18388B #8B1838 #388B18
tetradic
#18388B #8B1872 #8B6B18 #188B31
square
#18388B #8B1872 #8B6B18 #188B31
split-complementary
#18388B #8B3118 #728B18
monochromatic
#060E23 #0F2357 #18388B #214DBF #3F6CDE

Accessibility & contrast

On white

10.62
#18388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#18388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18388B
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18388B#FFFFFF#000000##FFFFFF
##18388B1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #18388b;
/* rgb */ color: rgb(24, 56, 139);
/* oklch */ color: oklch(37.3% 0.143 264.4);
Tailwind
colors: {
  custom: {
    50: '#6a6eae',
    500: '#18388b',
    950: '#000000',
  },
}
SCSS
$custom: #18388b;
$custom-light: #6a6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#18388b",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 223.304,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37331,
    "c": 0.14343,
    "h": 264.4
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#18388B
secondary
#BE9B40
accent
#BC3AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #18388B

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

Preview Lab → · Contrast checker → · Palette generator →

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