#18248F#18248F

#18248F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.173 H 268.7°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#18248F
RGBrgb(24, 36, 143)
HSLhsl(234, 71%, 33%)
HSVhsv(234, 83%, 56%)
CMYKcmyk(83.2%, 74.8%, 0%, 43.9%)
CIE-LABlab(21.72, 36.10, -59.57)
CIE-LCHlch(21.72, 69.65, 301.21°)
OKLaboklab(34.01% -0.0039 -0.1726)
OKLCHoklch(34.01% 0.173 268.7)
XYZxyz(5.9638, 3.4384, 26.3306)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18248F #8F8318
analogous
#185F8F #18248F #48188F
triadic
#18248F #8F1824 #248F18
tetradic
#18248F #8F185F #8F8318 #188F48
square
#18248F #8F185F #8F8318 #188F48
split-complementary
#18248F #8F4818 #5F8F18
monochromatic
#060A26 #0F175B #18248F #2131C3 #4252DF

Accessibility & contrast

On white

12.44
#18248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#18248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18248F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18248F#FFFFFF#000000##FFFFFF
##18248F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18248f;
/* rgb */ color: rgb(24, 36, 143);
/* oklch */ color: oklch(34.0% 0.173 268.7);
Tailwind
colors: {
  custom: {
    50: '#6d5fb1',
    500: '#18248f',
    950: '#000000',
  },
}
SCSS
$custom: #18248f;
$custom-light: #6d5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#18248f",
  "rgb": {
    "r": 24,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 233.95,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34011,
    "c": 0.17265,
    "h": 268.7
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#18248F
secondary
#C0B343
accent
#DC3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #18248F

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

Preview Lab → · Contrast checker → · Palette generator →

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