#18238F#18238F

#18238F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.174 H 268.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#18238F
RGBrgb(24, 35, 143)
HSLhsl(234, 71%, 33%)
HSVhsv(234, 83%, 56%)
CMYKcmyk(83.2%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.50, 36.71, -59.93)
CIE-LCHlch(21.50, 70.28, 301.49°)
OKLaboklab(33.85% -0.0035 -0.1737)
OKLCHoklch(33.85% 0.174 268.8)
XYZxyz(5.9339, 3.3787, 26.3207)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18238F #8F8418
analogous
#185E8F #18238F #49188F
triadic
#18238F #8F1823 #238F18
tetradic
#18238F #8F185E #8F8418 #188F49
square
#18238F #8F185E #8F8418 #188F49
split-complementary
#18238F #8F4918 #5E8F18
monochromatic
#060926 #0F165B #18238F #2130C3 #4251DF

Accessibility & contrast

On white

12.53
#18238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#18238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18238F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18238F#FFFFFF#000000##FFFFFF
##18238F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18238f;
/* rgb */ color: rgb(24, 35, 143);
/* oklch */ color: oklch(33.9% 0.174 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fb1',
    500: '#18238f',
    950: '#000000',
  },
}
SCSS
$custom: #18238f;
$custom-light: #6d5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#18238f",
  "rgb": {
    "r": 24,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 234.454,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33854,
    "c": 0.1737,
    "h": 268.8
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#18238F
secondary
#C0B443
accent
#DD3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #18238F

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

Preview Lab → · Contrast checker → · Palette generator →

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