#24277A#24277A

#24277A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.138 H 274.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#24277A
RGBrgb(36, 39, 122)
HSLhsl(238, 54%, 31%)
HSVhsv(238, 70%, 48%)
CMYKcmyk(70.5%, 68%, 0%, 52.2%)
CIE-LABlab(20.95, 27.66, -47.61)
CIE-LCHlch(20.95, 55.06, 300.15°)
OKLaboklab(32.98% 0.0103 -0.1374)
OKLCHoklch(32.98% 0.138 274.3)
XYZxyz(4.9648, 3.2308, 18.7705)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24277A #7A7724
analogous
#24527A #24277A #4C247A
triadic
#24277A #7A2427 #277A24
tetradic
#24277A #7A2452 #7A7724 #247A4C
square
#24277A #7A2452 #7A7724 #247A4C
split-complementary
#24277A #7A4C24 #527A24
monochromatic
#08091B #16184B #24277A #3236A9 #4E52CB

Accessibility & contrast

On white

12.76
#24277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#24277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24277A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24277A#FFFFFF#000000##FFFFFF
##24277A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #24277a;
/* rgb */ color: rgb(36, 39, 122);
/* oklch */ color: oklch(33.0% 0.138 274.3);
Tailwind
colors: {
  custom: {
    50: '#6b61a1',
    500: '#24277a',
    950: '#000000',
  },
}
SCSS
$custom: #24277a;
$custom-light: #6b61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#24277a",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 237.907,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32983,
    "c": 0.13784,
    "h": 274.3
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#24277A
secondary
#ACA94D
accent
#D94ADE
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #24277A

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

Preview Lab → · Contrast checker → · Palette generator →

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