#242496#242496

#242496 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.178 H 272.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#242496
RGBrgb(36, 36, 150)
HSLhsl(240, 61%, 36%)
HSVhsv(240, 76%, 59%)
CMYKcmyk(76%, 76%, 0%, 41.2%)
CIE-LABlab(23.13, 39.53, -61.55)
CIE-LCHlch(23.13, 73.15, 302.71°)
OKLaboklab(35.42% 0.008 -0.1781)
OKLCHoklch(35.42% 0.178 272.6)
XYZxyz(6.8616, 3.8381, 29.2275)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242496 #969624
analogous
#245D96 #242496 #5D2496
triadic
#242496 #962424 #249624
tetradic
#242496 #96245D #969624 #24965D
square
#242496 #96245D #969624 #24965D
split-complementary
#242496 #965D24 #5D9624
monochromatic
#0C0C33 #181865 #242496 #3030C7 #5C5CD8

Accessibility & contrast

On white

11.88
#242496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#242496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242496
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242496#FFFFFF#000000##FFFFFF
##2424961.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242496;
/* rgb */ color: rgb(36, 36, 150);
/* oklch */ color: oklch(35.4% 0.178 272.6);
Tailwind
colors: {
  custom: {
    50: '#7360b6',
    500: '#242496',
    950: '#000000',
  },
}
SCSS
$custom: #242496;
$custom-light: #7360b6;
$custom-dark: #000000;
JSON
{
  "hex": "#242496",
  "rgb": {
    "r": 36,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35416,
    "c": 0.17831,
    "h": 272.6
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#242496
secondary
#BDBD59
accent
#E443E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242496

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

Preview Lab → · Contrast checker → · Palette generator →

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