#242282#242282

#242282 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.155 H 274.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#242282
RGBrgb(36, 34, 130)
HSLhsl(241, 59%, 32%)
HSVhsv(241, 74%, 51%)
CMYKcmyk(72.3%, 73.8%, 0%, 49%)
CIE-LABlab(20.56, 33.77, -53.32)
CIE-LCHlch(20.56, 63.12, 302.35°)
OKLaboklab(32.95% 0.0127 -0.1541)
OKLCHoklch(32.95% 0.155 274.7)
XYZxyz(5.3275, 3.1303, 21.4382)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242282 #808222
analogous
#225082 #242282 #542282
triadic
#242282 #822422 #228224
tetradic
#242282 #822250 #808222 #228254
square
#242282 #822250 #808222 #228254
split-complementary
#242282 #825422 #508222
monochromatic
#090921 #171551 #242282 #312FB3 #504ED1

Accessibility & contrast

On white

12.91
#242282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#242282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242282
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242282#FFFFFF#000000##FFFFFF
##2422821.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242282;
/* rgb */ color: rgb(36, 34, 130);
/* oklch */ color: oklch(32.9% 0.155 274.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ea7',
    500: '#242282',
    950: '#000000',
  },
}
SCSS
$custom: #242282;
$custom-light: #6e5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#242282",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 241.25,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32946,
    "c": 0.15466,
    "h": 274.7
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#242282
secondary
#B2B44C
accent
#E246DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #242282

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

Preview Lab → · Contrast checker → · Palette generator →

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