#24338C#24338C

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

Color values

HEX#24338C
RGBrgb(36, 51, 140)
HSLhsl(231, 59%, 35%)
HSVhsv(231, 74%, 55%)
CMYKcmyk(74.3%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.67, 26.35, -51.19)
CIE-LCHlch(25.67, 57.58, 297.24°)
OKLaboklab(36.96% 0.0001 -0.1479)
OKLCHoklch(36.96% 0.148 270.1)
XYZxyz(6.6434, 4.6355, 25.3505)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24338C #8C7D24
analogous
#24678C #24338C #49248C
triadic
#24338C #8C2433 #338C24
tetradic
#24338C #8C2467 #8C7D24 #248C49
square
#24338C #8C2467 #8C7D24 #248C49
split-complementary
#24338C #8C4924 #678C24
monochromatic
#0B102B #17215B #24338C #3145BD #5769D4

Accessibility & contrast

On white

10.90
#24338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#24338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24338C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24338C#FFFFFF#000000##FFFFFF
##24338C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #24338c;
/* rgb */ color: rgb(36, 51, 140);
/* oklch */ color: oklch(37.0% 0.148 270.1);
Tailwind
colors: {
  custom: {
    50: '#6f6aae',
    500: '#24338c',
    950: '#000000',
  },
}
SCSS
$custom: #24338c;
$custom-light: #6f6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#24338c",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 231.346,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36957,
    "c": 0.14786,
    "h": 270.1
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#24338C
secondary
#B8AA54
accent
#CC46E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #24338C

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

Preview Lab → · Contrast checker → · Palette generator →

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