#18398E#18398E

#18398E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.146 H 264.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#18398E
RGBrgb(24, 57, 142)
HSLhsl(223, 71%, 33%)
HSVhsv(223, 83%, 56%)
CMYKcmyk(83.1%, 59.9%, 0%, 44.3%)
CIE-LABlab(26.94, 21.67, -50.38)
CIE-LCHlch(26.94, 54.84, 293.27°)
OKLaboklab(37.81% -0.0145 -0.1456)
OKLCHoklch(37.81% 0.146 264.3)
XYZxyz(6.7206, 5.0726, 26.2109)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18398E #8E6D18
analogous
#18748E #18398E #32188E
triadic
#18398E #8E1839 #398E18
tetradic
#18398E #8E1874 #8E6D18 #188E32
square
#18398E #8E1874 #8E6D18 #188E32
split-complementary
#18398E #8E3218 #748E18
monochromatic
#060F25 #0F245A #18398E #214EC2 #416DDF

Accessibility & contrast

On white

10.42
#18398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18398E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18398E#FFFFFF#000000##FFFFFF
##18398E1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #18398e;
/* rgb */ color: rgb(24, 57, 142);
/* oklch */ color: oklch(37.8% 0.146 264.3);
Tailwind
colors: {
  custom: {
    50: '#6b6eb0',
    500: '#18398e',
    950: '#000000',
  },
}
SCSS
$custom: #18398e;
$custom-light: #6b6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#18398e",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 223.22,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37811,
    "c": 0.14634,
    "h": 264.3
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#18398E
secondary
#C09D42
accent
#BC3AEE
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #18398E

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

Preview Lab → · Contrast checker → · Palette generator →

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