#242391#242391

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

Color values

HEX#242391
RGBrgb(36, 35, 145)
HSLhsl(241, 61%, 35%)
HSVhsv(241, 76%, 57%)
CMYKcmyk(75.2%, 75.9%, 0%, 43.1%)
CIE-LABlab(22.38, 38.40, -59.71)
CIE-LCHlch(22.38, 70.99, 302.75°)
OKLaboklab(34.72% 0.0094 -0.1727)
OKLCHoklch(34.72% 0.173 273.1)
XYZxyz(6.4377, 3.6208, 27.1422)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242391 #909123
analogous
#235991 #242391 #5B2391
triadic
#242391 #912423 #239124
tetradic
#242391 #912359 #909123 #23915B
square
#242391 #912359 #909123 #23915B
split-complementary
#242391 #915B23 #599123
monochromatic
#0C0B2E #181760 #242391 #302FC2 #5958D7

Accessibility & contrast

On white

12.18
#242391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242391
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242391#FFFFFF#000000##FFFFFF
##2423911.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242391;
/* rgb */ color: rgb(36, 35, 145);
/* oklch */ color: oklch(34.7% 0.173 273.1);
Tailwind
colors: {
  custom: {
    50: '#715fb2',
    500: '#242391',
    950: '#000000',
  },
}
SCSS
$custom: #242391;
$custom-light: #715fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#242391",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 240.545,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3472,
    "c": 0.17301,
    "h": 273.1
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#242391
secondary
#BABB55
accent
#E444E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242391

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

Preview Lab → · Contrast checker → · Palette generator →

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