#242551#242551

#242551 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.079 H 279.3°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#242551
RGBrgb(36, 37, 81)
HSLhsl(239, 38%, 23%)
HSVhsv(239, 56%, 32%)
CMYKcmyk(55.6%, 54.3%, 0%, 68.2%)
CIE-LABlab(16.95, 13.74, -27.21)
CIE-LCHlch(16.95, 30.48, 296.79°)
OKLaboklab(28.95% 0.0127 -0.0775)
OKLCHoklch(28.95% 0.079 279.3)
XYZxyz(2.8739, 2.2921, 8.0740)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242551 #515024
analogous
#243B51 #242551 #392451
triadic
#242551 #512425 #255124
tetradic
#242551 #51243B #515024 #245139
square
#242551 #51243B #515024 #245139
split-complementary
#242551 #513924 #3B5124
monochromatic
#090A15 #111227 #242551 #37387B #4A4CA6

Accessibility & contrast

On white

14.40
#242551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#242551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242551
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242551#FFFFFF#000000##FFFFFF
##2425511.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C53
Deuteranopia (green-blind)
#0C2850
Tritanopia (blue-blind)
#122F37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #242551;
/* rgb */ color: rgb(36, 37, 81);
/* oklch */ color: oklch(28.9% 0.079 279.3);
Tailwind
colors: {
  custom: {
    50: '#635f82',
    500: '#242551',
    950: '#000000',
  },
}
SCSS
$custom: #242551;
$custom-light: #635f82;
$custom-dark: #000000;
JSON
{
  "hex": "#242551",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 81
  },
  "hsl": {
    "h": 238.667,
    "s": 38.462,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28945,
    "c": 0.07855,
    "h": 279.3
  },
  "luminance": 0.02292
}

Semantic roles & 50–950 ramp

primary
#242551
secondary
#85834C
accent
#CC59CE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040A
muted
#7A797C

Preview Lab

Preview with #242551

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

Preview Lab → · Contrast checker → · Palette generator →

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