#242287#242287

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

Color values

HEX#242287
RGBrgb(36, 34, 135)
HSLhsl(241, 60%, 33%)
HSVhsv(241, 75%, 53%)
CMYKcmyk(73.3%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.09, 35.53, -55.60)
CIE-LCHlch(21.09, 65.98, 302.58°)
OKLaboklab(33.48% 0.0118 -0.1608)
OKLCHoklch(33.48% 0.161 274.2)
XYZxyz(5.6713, 3.2678, 23.2488)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242287 #858722
analogous
#225287 #242287 #562287
triadic
#242287 #872422 #228724
tetradic
#242287 #872252 #858722 #228756
square
#242287 #872252 #858722 #228756
split-complementary
#242287 #875622 #528722
monochromatic
#0A0925 #171656 #242287 #312EB8 #5350D3

Accessibility & contrast

On white

12.70
#242287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#242287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242287
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242287#FFFFFF#000000##FFFFFF
##2422871.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #242287;
/* rgb */ color: rgb(36, 34, 135);
/* oklch */ color: oklch(33.5% 0.161 274.2);
Tailwind
colors: {
  custom: {
    50: '#6f5eab',
    500: '#242287',
    950: '#000000',
  },
}
SCSS
$custom: #242287;
$custom-light: #6f5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#242287",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 241.188,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33481,
    "c": 0.16122,
    "h": 274.2
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#242287
secondary
#B4B74E
accent
#E345E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #242287

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

Preview Lab → · Contrast checker → · Palette generator →

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