#18248C#18248C

#18248C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.169 H 268.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#18248C
RGBrgb(24, 36, 140)
HSLhsl(234, 71%, 32%)
HSVhsv(234, 83%, 55%)
CMYKcmyk(82.9%, 74.3%, 0%, 45.1%)
CIE-LABlab(21.39, 35.00, -58.25)
CIE-LCHlch(21.39, 67.95, 301.00°)
OKLaboklab(33.68% -0.0035 -0.1688)
OKLCHoklch(33.68% 0.169 268.8)
XYZxyz(5.7396, 3.3487, 25.1497)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18248C #8C8018
analogous
#185E8C #18248C #46188C
triadic
#18248C #8C1824 #248C18
tetradic
#18248C #8C185E #8C8018 #188C46
square
#18248C #8C185E #8C8018 #188C46
split-complementary
#18248C #8C4618 #5E8C18
monochromatic
#060924 #0F1758 #18248C #2131C0 #4050DE

Accessibility & contrast

On white

12.58
#18248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#18248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18248C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18248C#FFFFFF#000000##FFFFFF
##18248C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18248c;
/* rgb */ color: rgb(24, 36, 140);
/* oklch */ color: oklch(33.7% 0.169 268.8);
Tailwind
colors: {
  custom: {
    50: '#6c5faf',
    500: '#18248c',
    950: '#000000',
  },
}
SCSS
$custom: #18248c;
$custom-light: #6c5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#18248c",
  "rgb": {
    "r": 24,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 233.793,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33676,
    "c": 0.16881,
    "h": 268.8
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#18248C
secondary
#BFB241
accent
#DB3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #18248C

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

Preview Lab → · Contrast checker → · Palette generator →

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