#42339A#42339A

#42339A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.160 H 283.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#42339A
RGBrgb(66, 51, 154)
HSLhsl(249, 50%, 40%)
HSVhsv(249, 67%, 60%)
CMYKcmyk(57.1%, 66.9%, 0%, 39.6%)
CIE-LABlab(29.05, 35.89, -54.19)
CIE-LCHlch(29.05, 65.00, 303.52°)
OKLaboklab(40.36% 0.0365 -0.1558)
OKLCHoklch(40.36% 0.16 283.2)
XYZxyz(9.2615, 5.8584, 31.2083)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42339A #8B9A33
analogous
#33579A #42339A #76339A
triadic
#42339A #9A4233 #339A42
tetradic
#42339A #9A3357 #8B9A33 #339A76
square
#42339A #9A3357 #8B9A33 #339A76
split-complementary
#42339A #9A7633 #579A33
monochromatic
#1B153E #2E246C #42339A #5A48C2 #8376D2

Accessibility & contrast

On white

9.67
#42339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#42339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42339A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42339A#FFFFFF#000000##FFFFFF
##42339A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#164D62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42339a;
/* rgb */ color: rgb(66, 51, 154);
/* oklch */ color: oklch(40.4% 0.160 283.2);
Tailwind
colors: {
  custom: {
    50: '#806cb9',
    500: '#42339a',
    950: '#000000',
  },
}
SCSS
$custom: #42339a;
$custom-light: #806cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#42339a",
  "rgb": {
    "r": 66,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 248.738,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40363,
    "c": 0.16002,
    "h": 283.2
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#42339A
secondary
#AFBA6F
accent
#DA4EC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #42339A

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

Preview Lab → · Contrast checker → · Palette generator →

#42339A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva