#242096#242096

#242096 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.182 H 273.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#242096
RGBrgb(36, 32, 150)
HSLhsl(242, 65%, 36%)
HSVhsv(242, 79%, 59%)
CMYKcmyk(76%, 78.7%, 0%, 41.2%)
CIE-LABlab(22.34, 41.79, -62.86)
CIE-LCHlch(22.34, 75.49, 303.61°)
OKLaboklab(34.86% 0.0097 -0.1819)
OKLCHoklch(34.86% 0.182 273.1)
XYZxyz(6.7472, 3.6094, 29.1893)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242096 #929620
analogous
#205796 #242096 #5F2096
triadic
#242096 #962420 #209624
tetradic
#242096 #962057 #929620 #20965F
square
#242096 #962057 #929620 #20965F
split-complementary
#242096 #965F20 #579620
monochromatic
#0C0A31 #181564 #242096 #302BC8 #5A56DB

Accessibility & contrast

On white

12.20
#242096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#242096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242096
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242096#FFFFFF#000000##FFFFFF
##2420961.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242096;
/* rgb */ color: rgb(36, 32, 150);
/* oklch */ color: oklch(34.9% 0.182 273.1);
Tailwind
colors: {
  custom: {
    50: '#735eb6',
    500: '#242096',
    950: '#000000',
  },
}
SCSS
$custom: #242096;
$custom-light: #735eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#242096",
  "rgb": {
    "r": 36,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 242.034,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.18216,
    "h": 273.1
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#242096
secondary
#BBBE53
accent
#E840E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #242096

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

Preview Lab → · Contrast checker → · Palette generator →

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