#18398F#18398F

#18398F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.148 H 264.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#18398F
RGBrgb(24, 57, 143)
HSLhsl(223, 71%, 33%)
HSVhsv(223, 83%, 56%)
CMYKcmyk(83.2%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.03, 22.07, -50.86)
CIE-LCHlch(27.03, 55.44, 293.46°)
OKLaboklab(37.9% -0.0145 -0.147)
OKLCHoklch(37.9% 0.148 264.4)
XYZxyz(6.7960, 5.1028, 26.6080)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18398F #8F6E18
analogous
#18758F #18398F #32188F
triadic
#18398F #8F1839 #398F18
tetradic
#18398F #8F1875 #8F6E18 #188F32
square
#18398F #8F1875 #8F6E18 #188F32
split-complementary
#18398F #8F3218 #758F18
monochromatic
#060F26 #0F245B #18398F #214EC3 #426EDF

Accessibility & contrast

On white

10.39
#18398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#18398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18398F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18398F#FFFFFF#000000##FFFFFF
##18398F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #18398f;
/* rgb */ color: rgb(24, 57, 143);
/* oklch */ color: oklch(37.9% 0.148 264.4);
Tailwind
colors: {
  custom: {
    50: '#6b6eb1',
    500: '#18398f',
    950: '#000000',
  },
}
SCSS
$custom: #18398f;
$custom-light: #6b6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#18398f",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 223.361,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.14773,
    "h": 264.4
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#18398F
secondary
#C09D43
accent
#BC3AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #18398F

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

Preview Lab → · Contrast checker → · Palette generator →

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