#242557#242557

#242557 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.088 H 278.6°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#242557
RGBrgb(36, 37, 87)
HSLhsl(239, 41%, 24%)
HSVhsv(239, 59%, 34%)
CMYKcmyk(58.6%, 57.5%, 0%, 65.9%)
CIE-LABlab(17.40, 15.96, -30.54)
CIE-LCHlch(17.40, 34.46, 297.59°)
OKLaboklab(29.42% 0.0132 -0.0873)
OKLCHoklch(29.42% 0.088 278.6)
XYZxyz(3.1089, 2.3861, 9.3117)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242557 #575624
analogous
#243F57 #242557 #3D2457
triadic
#242557 #572425 #255724
tetradic
#242557 #57243F #575624 #24573D
square
#242557 #57243F #575624 #24573D
split-complementary
#242557 #573D24 #3F5724
monochromatic
#090916 #12132C #242557 #363782 #484AAE

Accessibility & contrast

On white

14.22
#242557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#242557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242557
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242557#FFFFFF#000000##FFFFFF
##2425571.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092D59
Deuteranopia (green-blind)
#022956
Tritanopia (blue-blind)
#0C303A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #242557;
/* rgb */ color: rgb(36, 37, 87);
/* oklch */ color: oklch(29.4% 0.088 278.6);
Tailwind
colors: {
  custom: {
    50: '#645f87',
    500: '#242557',
    950: '#000000',
  },
}
SCSS
$custom: #242557;
$custom-light: #645f87;
$custom-dark: #000000;
JSON
{
  "hex": "#242557",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 87
  },
  "hsl": {
    "h": 238.824,
    "s": 41.463,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29421,
    "c": 0.0883,
    "h": 278.6
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#242557
secondary
#8B894C
accent
#CF57D1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #242557

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

Preview Lab → · Contrast checker → · Palette generator →

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