#18398B#18398B

#18398B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.142 H 264.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#18398B
RGBrgb(24, 57, 139)
HSLhsl(223, 71%, 32%)
HSVhsv(223, 83%, 55%)
CMYKcmyk(82.7%, 59%, 0%, 45.5%)
CIE-LABlab(26.69, 20.45, -48.93)
CIE-LCHlch(26.69, 53.03, 292.68°)
OKLaboklab(37.54% -0.0147 -0.1414)
OKLCHoklch(37.54% 0.142 264.1)
XYZxyz(6.4984, 4.9838, 25.0406)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18398B #8B6A18
analogous
#18728B #18398B #31188B
triadic
#18398B #8B1839 #398B18
tetradic
#18398B #8B1872 #8B6A18 #188B31
square
#18398B #8B1872 #8B6A18 #188B31
split-complementary
#18398B #8B3118 #728B18
monochromatic
#060E23 #0F2457 #18398B #214EBF #3F6DDE

Accessibility & contrast

On white

10.52
#18398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#18398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18398B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18398B#FFFFFF#000000##FFFFFF
##18398B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #18398b;
/* rgb */ color: rgb(24, 57, 139);
/* oklch */ color: oklch(37.5% 0.142 264.1);
Tailwind
colors: {
  custom: {
    50: '#6a6eae',
    500: '#18398b',
    950: '#000000',
  },
}
SCSS
$custom: #18398b;
$custom-light: #6a6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#18398b",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 222.783,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37543,
    "c": 0.14214,
    "h": 264.1
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#18398B
secondary
#BE9A40
accent
#BA3AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #18398B

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

Preview Lab → · Contrast checker → · Palette generator →

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