#24338A#24338A

#24338A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.145 H 270.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#24338A
RGBrgb(36, 51, 138)
HSLhsl(231, 59%, 34%)
HSVhsv(231, 74%, 54%)
CMYKcmyk(73.9%, 63%, 0%, 45.9%)
CIE-LABlab(25.49, 25.59, -50.24)
CIE-LCHlch(25.49, 56.38, 296.99°)
OKLaboklab(36.77% 0.0002 -0.1451)
OKLCHoklch(36.77% 0.145 270.1)
XYZxyz(6.4973, 4.5770, 24.5809)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24338A #8A7B24
analogous
#24668A #24338A #48248A
triadic
#24338A #8A2433 #338A24
tetradic
#24338A #8A2466 #8A7B24 #248A48
square
#24338A #8A2466 #8A7B24 #248A48
split-complementary
#24338A #8A4824 #668A24
monochromatic
#0B0F29 #172159 #24338A #3145BB #5668D3

Accessibility & contrast

On white

10.96
#24338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#24338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24338A
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24338A#FFFFFF#000000##FFFFFF
##24338A1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #24338a;
/* rgb */ color: rgb(36, 51, 138);
/* oklch */ color: oklch(36.8% 0.145 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e6aad',
    500: '#24338a',
    950: '#000000',
  },
}
SCSS
$custom: #24338a;
$custom-light: #6e6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#24338a",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 231.176,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36772,
    "c": 0.14506,
    "h": 270.1
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#24338A
secondary
#B7A853
accent
#CB46E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #24338A

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

Preview Lab → · Contrast checker → · Palette generator →

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