#242291#242291

#242291 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.174 H 273.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#242291
RGBrgb(36, 34, 145)
HSLhsl(241, 62%, 35%)
HSVhsv(241, 77%, 57%)
CMYKcmyk(75.2%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.17, 38.98, -60.05)
CIE-LCHlch(22.17, 71.59, 302.99°)
OKLaboklab(34.57% 0.0099 -0.1737)
OKLCHoklch(34.57% 0.174 273.3)
XYZxyz(6.4087, 3.5628, 27.1325)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242291 #8F9122
analogous
#225891 #242291 #5B2291
triadic
#242291 #912422 #229124
tetradic
#242291 #912258 #8F9122 #22915B
square
#242291 #912258 #8F9122 #22915B
split-complementary
#242291 #915B22 #589122
monochromatic
#0B0B2E #18165F #242291 #302EC3 #5856D7

Accessibility & contrast

On white

12.26
#242291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#242291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242291
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242291#FFFFFF#000000##FFFFFF
##2422911.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242291;
/* rgb */ color: rgb(36, 34, 145);
/* oklch */ color: oklch(34.6% 0.174 273.3);
Tailwind
colors: {
  custom: {
    50: '#715fb2',
    500: '#242291',
    950: '#000000',
  },
}
SCSS
$custom: #242291;
$custom-light: #715fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#242291",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 241.081,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34574,
    "c": 0.17402,
    "h": 273.3
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#242291
secondary
#B9BB53
accent
#E543E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #242291

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

Preview Lab → · Contrast checker → · Palette generator →

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