#242181#242181

#242181 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.154 H 275.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#242181
RGBrgb(36, 33, 129)
HSLhsl(242, 59%, 32%)
HSVhsv(242, 74%, 51%)
CMYKcmyk(72.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.23, 34.03, -53.23)
CIE-LCHlch(20.23, 63.18, 302.60°)
OKLaboklab(32.68% 0.0135 -0.1539)
OKLCHoklch(32.68% 0.154 275)
XYZxyz(5.2325, 3.0473, 21.0770)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242181 #7E8121
analogous
#214E81 #242181 #542181
triadic
#242181 #812421 #218124
tetradic
#242181 #81214E #7E8121 #218154
square
#242181 #81214E #7E8121 #218154
split-complementary
#242181 #815421 #4E8121
monochromatic
#090820 #161550 #242181 #322DB2 #504BD1

Accessibility & contrast

On white

13.05
#242181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#242181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242181
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242181#FFFFFF#000000##FFFFFF
##2421811.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #242181;
/* rgb */ color: rgb(36, 33, 129);
/* oklch */ color: oklch(32.7% 0.154 275.0);
Tailwind
colors: {
  custom: {
    50: '#6e5da7',
    500: '#242181',
    950: '#000000',
  },
}
SCSS
$custom: #242181;
$custom-light: #6e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#242181",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 241.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.15445,
    "h": 275
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#242181
secondary
#B0B44A
accent
#E245DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #242181

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

Preview Lab → · Contrast checker → · Palette generator →

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