#18398A#18398A

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

Color values

HEX#18398A
RGBrgb(24, 57, 138)
HSLhsl(223, 70%, 32%)
HSVhsv(223, 83%, 54%)
CMYKcmyk(82.6%, 58.7%, 0%, 45.9%)
CIE-LABlab(26.61, 20.04, -48.45)
CIE-LCHlch(26.61, 52.43, 292.47°)
OKLaboklab(37.45% -0.0147 -0.1399)
OKLCHoklch(37.45% 0.141 264)
XYZxyz(6.4256, 4.9547, 24.6575)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18398A #8A6918
analogous
#18728A #18398A #30188A
triadic
#18398A #8A1839 #398A18
tetradic
#18398A #8A1872 #8A6918 #188A30
square
#18398A #8A1872 #8A6918 #188A30
split-complementary
#18398A #8A3018 #728A18
monochromatic
#060E22 #0F2356 #18398A #214FBE #3F6DDE

Accessibility & contrast

On white

10.55
#18398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#18398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18398A
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18398A#FFFFFF#000000##FFFFFF
##18398A1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #18398a;
/* rgb */ color: rgb(24, 57, 138);
/* oklch */ color: oklch(37.5% 0.141 264.0);
Tailwind
colors: {
  custom: {
    50: '#6a6ead',
    500: '#18398a',
    950: '#000000',
  },
}
SCSS
$custom: #18398a;
$custom-light: #6a6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#18398a",
  "rgb": {
    "r": 24,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 222.632,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37454,
    "c": 0.14072,
    "h": 264
  },
  "luminance": 0.04955
}

Semantic roles & 50–950 ramp

primary
#18398A
secondary
#BD9940
accent
#B93BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #18398A

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

Preview Lab → · Contrast checker → · Palette generator →

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