#242491#242491

#242491 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.172 H 273.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#242491
RGBrgb(36, 36, 145)
HSLhsl(240, 60%, 35%)
HSVhsv(240, 75%, 57%)
CMYKcmyk(75.2%, 75.2%, 0%, 43.1%)
CIE-LABlab(22.59, 37.81, -59.36)
CIE-LCHlch(22.59, 70.38, 302.50°)
OKLaboklab(34.87% 0.0089 -0.1718)
OKLCHoklch(34.87% 0.172 273)
XYZxyz(6.4676, 3.6805, 27.1521)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242491 #919124
analogous
#245A91 #242491 #5A2491
triadic
#242491 #912424 #249124
tetradic
#242491 #91245A #919124 #24915A
square
#242491 #91245A #919124 #24915A
split-complementary
#242491 #915A24 #5A9124
monochromatic
#0C0C2F #181860 #242491 #3030C2 #5959D6

Accessibility & contrast

On white

12.10
#242491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242491
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242491#FFFFFF#000000##FFFFFF
##2424911.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242491;
/* rgb */ color: rgb(36, 36, 145);
/* oklch */ color: oklch(34.9% 0.172 273.0);
Tailwind
colors: {
  custom: {
    50: '#7160b2',
    500: '#242491',
    950: '#000000',
  },
}
SCSS
$custom: #242491;
$custom-light: #7160b2;
$custom-dark: #000000;
JSON
{
  "hex": "#242491",
  "rgb": {
    "r": 36,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34868,
    "c": 0.17198,
    "h": 273
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#242491
secondary
#BABA56
accent
#E344E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242491

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

Preview Lab → · Contrast checker → · Palette generator →

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