#42339B#42339B

#42339B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.161 H 283.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#42339B
RGBrgb(66, 51, 155)
HSLhsl(249, 50%, 40%)
HSVhsv(249, 67%, 61%)
CMYKcmyk(57.4%, 67.1%, 0%, 39.2%)
CIE-LABlab(29.14, 36.21, -54.66)
CIE-LCHlch(29.14, 65.57, 303.53°)
OKLaboklab(40.45% 0.0364 -0.1572)
OKLCHoklch(40.45% 0.161 283)
XYZxyz(9.3452, 5.8919, 31.6488)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42339B #8C9B33
analogous
#33589B #42339B #76339B
triadic
#42339B #9B4233 #339B42
tetradic
#42339B #9B3358 #8C9B33 #339B76
square
#42339B #9B3358 #8C9B33 #339B76
split-complementary
#42339B #9B7633 #589B33
monochromatic
#1B153F #2E246D #42339B #5A48C3 #8476D2

Accessibility & contrast

On white

9.64
#42339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#42339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42339B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42339B#FFFFFF#000000##FFFFFF
##42339B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#154D62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42339b;
/* rgb */ color: rgb(66, 51, 155);
/* oklch */ color: oklch(40.5% 0.161 283.0);
Tailwind
colors: {
  custom: {
    50: '#806cb9',
    500: '#42339b',
    950: '#000000',
  },
}
SCSS
$custom: #42339b;
$custom-light: #806cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#42339b",
  "rgb": {
    "r": 66,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 248.654,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.16134,
    "h": 283
  },
  "luminance": 0.05892
}

Semantic roles & 50–950 ramp

primary
#42339B
secondary
#B0BA6F
accent
#DA4EC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42339B

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

Preview Lab → · Contrast checker → · Palette generator →

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