#242186#242186

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

Color values

HEX#242186
RGBrgb(36, 33, 134)
HSLhsl(242, 60%, 33%)
HSVhsv(242, 75%, 53%)
CMYKcmyk(73.1%, 75.4%, 0%, 47.5%)
CIE-LABlab(20.76, 35.78, -55.50)
CIE-LCHlch(20.76, 66.03, 302.81°)
OKLaboklab(33.22% 0.0126 -0.1605)
OKLCHoklch(33.22% 0.161 274.5)
XYZxyz(5.5731, 3.1835, 22.8704)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242186 #838621
analogous
#215186 #242186 #562186
triadic
#242186 #862421 #218624
tetradic
#242186 #862151 #838621 #218656
square
#242186 #862151 #838621 #218656
split-complementary
#242186 #865621 #518621
monochromatic
#0A0924 #171555 #242186 #312DB7 #524ED3

Accessibility & contrast

On white

12.83
#242186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#242186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242186
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242186#FFFFFF#000000##FFFFFF
##2421861.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242186;
/* rgb */ color: rgb(36, 33, 134);
/* oklch */ color: oklch(33.2% 0.161 274.5);
Tailwind
colors: {
  custom: {
    50: '#6f5eaa',
    500: '#242186',
    950: '#000000',
  },
}
SCSS
$custom: #242186;
$custom-light: #6f5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#242186",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 241.782,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.16099,
    "h": 274.5
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#242186
secondary
#B3B74C
accent
#E444DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #242186

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

Preview Lab → · Contrast checker → · Palette generator →

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