#242581#242581

#242581 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.150 H 274.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#242581
RGBrgb(36, 37, 129)
HSLhsl(239, 56%, 32%)
HSVhsv(239, 72%, 51%)
CMYKcmyk(72.1%, 71.3%, 0%, 49.4%)
CIE-LABlab(21.14, 31.53, -51.73)
CIE-LCHlch(21.14, 60.58, 301.36°)
OKLaboklab(33.33% 0.0109 -0.1495)
OKLCHoklch(33.33% 0.15 274.2)
XYZxyz(5.3503, 3.2827, 21.1163)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242581 #818024
analogous
#245381 #242581 #522481
triadic
#242581 #812425 #258124
tetradic
#242581 #812453 #818024 #248152
square
#242581 #812453 #818024 #248152
split-complementary
#242581 #815224 #538124
monochromatic
#090A21 #171751 #242581 #3133B1 #5152CE

Accessibility & contrast

On white

12.68
#242581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#242581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242581
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242581#FFFFFF#000000##FFFFFF
##2425811.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #242581;
/* rgb */ color: rgb(36, 37, 129);
/* oklch */ color: oklch(33.3% 0.150 274.2);
Tailwind
colors: {
  custom: {
    50: '#6d60a7',
    500: '#242581',
    950: '#000000',
  },
}
SCSS
$custom: #242581;
$custom-light: #6d60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#242581",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 239.355,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33334,
    "c": 0.1499,
    "h": 274.2
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#242581
secondary
#B2B14E
accent
#DE48E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #242581

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

Preview Lab → · Contrast checker → · Palette generator →

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