#242799#242799

#242799 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.179 H 271.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#242799
RGBrgb(36, 39, 153)
HSLhsl(238, 62%, 37%)
HSVhsv(238, 76%, 60%)
CMYKcmyk(76.5%, 74.5%, 0%, 40%)
CIE-LABlab(24.08, 38.81, -61.82)
CIE-LCHlch(24.08, 72.99, 302.12°)
OKLaboklab(36.19% 0.0061 -0.1789)
OKLCHoklch(36.19% 0.179 271.9)
XYZxyz(7.2009, 4.1252, 30.5476)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242799 #999624
analogous
#246199 #242799 #5C2499
triadic
#242799 #992427 #279924
tetradic
#242799 #992461 #999624 #24995C
square
#242799 #992461 #999624 #24995C
split-complementary
#242799 #995C24 #619924
monochromatic
#0D0E36 #181A67 #242799 #3034CB #5E61D9

Accessibility & contrast

On white

11.51
#242799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#242799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242799
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242799#FFFFFF#000000##FFFFFF
##2427991.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242799;
/* rgb */ color: rgb(36, 39, 153);
/* oklch */ color: oklch(36.2% 0.179 271.9);
Tailwind
colors: {
  custom: {
    50: '#7362b8',
    500: '#242799',
    950: '#000000',
  },
}
SCSS
$custom: #242799;
$custom-light: #7362b8;
$custom-dark: #000000;
JSON
{
  "hex": "#242799",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 238.462,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36189,
    "c": 0.17905,
    "h": 271.9
  },
  "luminance": 0.04126
}

Semantic roles & 50–950 ramp

primary
#242799
secondary
#BEBC5B
accent
#E143E5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #242799

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

Preview Lab → · Contrast checker → · Palette generator →

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