#24317F#24317F

#24317F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.132 H 270.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#24317F
RGBrgb(36, 49, 127)
HSLhsl(231, 56%, 32%)
HSVhsv(231, 72%, 50%)
CMYKcmyk(71.7%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.01, 22.74, -45.77)
CIE-LCHlch(24.01, 51.11, 296.42°)
OKLaboklab(35.38% 0.0019 -0.132)
OKLCHoklch(35.38% 0.132 270.8)
XYZxyz(5.6553, 4.1035, 20.5686)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24317F #7F7224
analogous
#245E7F #24317F #45247F
triadic
#24317F #7F2431 #317F24
tetradic
#24317F #7F245E #7F7224 #247F45
square
#24317F #7F245E #7F7224 #247F45
split-complementary
#24317F #7F4524 #5E7F24
monochromatic
#090C20 #161F4F #24317F #3243AF #5062CD

Accessibility & contrast

On white

11.53
#24317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#24317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24317F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24317F#FFFFFF#000000##FFFFFF
##24317F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #24317f;
/* rgb */ color: rgb(36, 49, 127);
/* oklch */ color: oklch(35.4% 0.132 270.8);
Tailwind
colors: {
  custom: {
    50: '#6c68a5',
    500: '#24317f',
    950: '#000000',
  },
}
SCSS
$custom: #24317f;
$custom-light: #6c68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24317f",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 231.429,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35378,
    "c": 0.13198,
    "h": 270.8
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#24317F
secondary
#B1A34E
accent
#CA49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #24317F

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

Preview Lab → · Contrast checker → · Palette generator →

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