#18398D#18398D

#18398D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.145 H 264.2°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#18398D
RGBrgb(24, 57, 141)
HSLhsl(223, 71%, 32%)
HSVhsv(223, 83%, 55%)
CMYKcmyk(83%, 59.6%, 0%, 44.7%)
CIE-LABlab(26.86, 21.26, -49.90)
CIE-LCHlch(26.86, 54.24, 293.08°)
OKLaboklab(37.72% -0.0146 -0.1442)
OKLCHoklch(37.72% 0.145 264.2)
XYZxyz(6.6458, 5.0427, 25.8172)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18398D #8D6C18
analogous
#18748D #18398D #32188D
triadic
#18398D #8D1839 #398D18
tetradic
#18398D #8D1874 #8D6C18 #188D32
square
#18398D #8D1874 #8D6C18 #188D32
split-complementary
#18398D #8D3218 #748D18
monochromatic
#060F24 #0F2459 #18398D #214EC1 #416DDF

Accessibility & contrast

On white

10.45
#18398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#18398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18398D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18398D#FFFFFF#000000##FFFFFF
##18398D1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18398d;
/* rgb */ color: rgb(24, 57, 141);
/* oklch */ color: oklch(37.7% 0.145 264.2);
Tailwind
colors: {
  custom: {
    50: '#6a6eaf',
    500: '#18398d',
    950: '#000000',
  },
}
SCSS
$custom: #18398d;
$custom-light: #6a6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#18398d",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 223.077,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37721,
    "c": 0.14495,
    "h": 264.2
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#18398D
secondary
#BF9C42
accent
#BB3AEE
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #18398D

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

Preview Lab → · Contrast checker → · Palette generator →

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