#242399#242399

#242399 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.183 H 272.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#242399
RGBrgb(36, 35, 153)
HSLhsl(241, 63%, 37%)
HSVhsv(241, 77%, 60%)
CMYKcmyk(76.5%, 77.1%, 0%, 40%)
CIE-LABlab(23.26, 41.13, -63.18)
CIE-LCHlch(23.26, 75.39, 303.06°)
OKLaboklab(35.6% 0.0078 -0.1829)
OKLCHoklch(35.6% 0.183 272.5)
XYZxyz(7.0764, 3.8763, 30.5061)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242399 #989923
analogous
#235D99 #242399 #5F2399
triadic
#242399 #992423 #239924
tetradic
#242399 #99235D #989923 #23995F
square
#242399 #99235D #989923 #23995F
split-complementary
#242399 #995F23 #5D9923
monochromatic
#0D0C35 #181867 #242399 #302ECB #5E5DDA

Accessibility & contrast

On white

11.83
#242399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#242399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242399
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242399#FFFFFF#000000##FFFFFF
##2423991.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242399;
/* rgb */ color: rgb(36, 35, 153);
/* oklch */ color: oklch(35.6% 0.183 272.5);
Tailwind
colors: {
  custom: {
    50: '#7360b8',
    500: '#242399',
    950: '#000000',
  },
}
SCSS
$custom: #242399;
$custom-light: #7360b8;
$custom-dark: #000000;
JSON
{
  "hex": "#242399",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 240.508,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35605,
    "c": 0.18304,
    "h": 272.5
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#242399
secondary
#BEBE59
accent
#E642E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #242399

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

Preview Lab → · Contrast checker → · Palette generator →

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