#242791#242791

#242791 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.169 H 272.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#242791
RGBrgb(36, 39, 145)
HSLhsl(238, 60%, 35%)
HSVhsv(238, 75%, 57%)
CMYKcmyk(75.2%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.24, 36.00, -58.29)
CIE-LCHlch(23.24, 68.51, 301.70°)
OKLaboklab(35.33% 0.0074 -0.1686)
OKLCHoklch(35.33% 0.169 272.5)
XYZxyz(6.5622, 3.8698, 27.1837)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242791 #918E24
analogous
#245D91 #242791 #582491
triadic
#242791 #912427 #279124
tetradic
#242791 #91245D #918E24 #249158
square
#242791 #91245D #918E24 #249158
split-complementary
#242791 #915824 #5D9124
monochromatic
#0C0D2F #181A60 #242791 #3034C2 #595DD6

Accessibility & contrast

On white

11.84
#242791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#242791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242791
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242791#FFFFFF#000000##FFFFFF
##2427911.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242791;
/* rgb */ color: rgb(36, 39, 145);
/* oklch */ color: oklch(35.3% 0.169 272.5);
Tailwind
colors: {
  custom: {
    50: '#7162b2',
    500: '#242791',
    950: '#000000',
  },
}
SCSS
$custom: #242791;
$custom-light: #7162b2;
$custom-dark: #000000;
JSON
{
  "hex": "#242791",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 238.349,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.1688,
    "h": 272.5
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#242791
secondary
#BAB856
accent
#DF44E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242791

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

Preview Lab → · Contrast checker → · Palette generator →

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