#242087#242087

#242087 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.163 H 274.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#242087
RGBrgb(36, 32, 135)
HSLhsl(242, 62%, 33%)
HSVhsv(242, 76%, 53%)
CMYKcmyk(73.3%, 76.3%, 0%, 47.1%)
CIE-LABlab(20.66, 36.72, -56.30)
CIE-LCHlch(20.66, 67.22, 303.11°)
OKLaboklab(33.18% 0.0129 -0.1628)
OKLCHoklch(33.18% 0.163 274.5)
XYZxyz(5.6158, 3.1568, 23.2303)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242087 #838720
analogous
#204F87 #242087 #572087
triadic
#242087 #872420 #208724
tetradic
#242087 #87204F #838720 #208757
square
#242087 #87204F #838720 #208757
split-complementary
#242087 #875720 #4F8720
monochromatic
#0A0924 #171456 #242087 #312CB8 #524DD5

Accessibility & contrast

On white

12.87
#242087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242087
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242087#FFFFFF#000000##FFFFFF
##2420871.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242087;
/* rgb */ color: rgb(36, 32, 135);
/* oklch */ color: oklch(33.2% 0.163 274.5);
Tailwind
colors: {
  custom: {
    50: '#6f5dab',
    500: '#242087',
    950: '#000000',
  },
}
SCSS
$custom: #242087;
$custom-light: #6f5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#242087",
  "rgb": {
    "r": 36,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 242.33,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33179,
    "c": 0.16332,
    "h": 274.5
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#242087
secondary
#B3B84B
accent
#E543DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #242087

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

Preview Lab → · Contrast checker → · Palette generator →

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