#242396#242396

#242396 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.179 H 272.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#242396
RGBrgb(36, 35, 150)
HSLhsl(241, 62%, 36%)
HSVhsv(241, 77%, 59%)
CMYKcmyk(76%, 76.7%, 0%, 41.2%)
CIE-LABlab(22.92, 40.11, -61.89)
CIE-LCHlch(22.92, 73.75, 302.95°)
OKLaboklab(35.27% 0.0084 -0.1791)
OKLCHoklch(35.27% 0.179 272.7)
XYZxyz(6.8318, 3.7784, 29.2175)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242396 #959623
analogous
#235C96 #242396 #5E2396
triadic
#242396 #962423 #239624
tetradic
#242396 #96235C #959623 #23965E
square
#242396 #96235C #959623 #23965E
split-complementary
#242396 #965E23 #5C9623
monochromatic
#0C0C33 #181764 #242396 #302FC8 #5C5BD9

Accessibility & contrast

On white

11.96
#242396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242396
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242396#FFFFFF#000000##FFFFFF
##2423961.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242396;
/* rgb */ color: rgb(36, 35, 150);
/* oklch */ color: oklch(35.3% 0.179 272.7);
Tailwind
colors: {
  custom: {
    50: '#7360b6',
    500: '#242396',
    950: '#000000',
  },
}
SCSS
$custom: #242396;
$custom-light: #7360b6;
$custom-dark: #000000;
JSON
{
  "hex": "#242396",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 240.522,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35271,
    "c": 0.1793,
    "h": 272.7
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#242396
secondary
#BCBD58
accent
#E543E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242396

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

Preview Lab → · Contrast checker → · Palette generator →

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