#242571#242571

#242571 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.128 H 275.7°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#242571
RGBrgb(36, 37, 113)
HSLhsl(239, 52%, 29%)
HSVhsv(239, 68%, 44%)
CMYKcmyk(68.1%, 67.3%, 0%, 55.7%)
CIE-LABlab(19.60, 25.67, -44.05)
CIE-LCHlch(19.60, 50.98, 300.23°)
OKLaboklab(31.74% 0.0128 -0.127)
OKLCHoklch(31.74% 0.128 275.7)
XYZxyz(4.3688, 2.8901, 15.9472)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242571 #717024
analogous
#244C71 #242571 #4A2471
triadic
#242571 #712425 #257124
tetradic
#242571 #71244C #717024 #24714A
square
#242571 #71244C #717024 #24714A
split-complementary
#242571 #714A24 #4C7124
monochromatic
#070817 #151643 #242571 #33349F #4A4CC5

Accessibility & contrast

On white

13.31
#242571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#242571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242571
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242571#FFFFFF#000000##FFFFFF
##2425711.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #242571;
/* rgb */ color: rgb(36, 37, 113);
/* oklch */ color: oklch(31.7% 0.128 275.7);
Tailwind
colors: {
  custom: {
    50: '#695f9b',
    500: '#242571',
    950: '#000000',
  },
}
SCSS
$custom: #242571;
$custom-light: #695f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#242571",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 239.221,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31741,
    "c": 0.12765,
    "h": 275.7
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#242571
secondary
#A4A34D
accent
#D94DDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242571

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

Preview Lab → · Contrast checker → · Palette generator →

#242571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva