#242286#242286

#242286 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.160 H 274.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#242286
RGBrgb(36, 34, 134)
HSLhsl(241, 60%, 33%)
HSVhsv(241, 75%, 53%)
CMYKcmyk(73.1%, 74.6%, 0%, 47.5%)
CIE-LABlab(20.98, 35.18, -55.15)
CIE-LCHlch(20.98, 65.41, 302.53°)
OKLaboklab(33.37% 0.012 -0.1595)
OKLCHoklch(33.37% 0.16 274.3)
XYZxyz(5.6012, 3.2398, 22.8798)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242286 #848622
analogous
#225286 #242286 #562286
triadic
#242286 #862422 #228624
tetradic
#242286 #862252 #848622 #228656
square
#242286 #862252 #848622 #228656
split-complementary
#242286 #865622 #528622
monochromatic
#0A0924 #171655 #242286 #312EB7 #5250D3

Accessibility & contrast

On white

12.74
#242286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242286
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242286#FFFFFF#000000##FFFFFF
##2422861.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242286;
/* rgb */ color: rgb(36, 34, 134);
/* oklch */ color: oklch(33.4% 0.160 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f5eaa',
    500: '#242286',
    950: '#000000',
  },
}
SCSS
$custom: #242286;
$custom-light: #6f5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#242286",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 241.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33373,
    "c": 0.15992,
    "h": 274.3
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #242286

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

Preview Lab → · Contrast checker → · Palette generator →

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