#42339D#42339D

#42339D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.164 H 282.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#42339D
RGBrgb(66, 51, 157)
HSLhsl(248, 51%, 41%)
HSVhsv(248, 68%, 62%)
CMYKcmyk(58%, 67.5%, 0%, 38.4%)
CIE-LABlab(29.31, 36.86, -55.60)
CIE-LCHlch(29.31, 66.70, 303.54°)
OKLaboklab(40.63% 0.0361 -0.1599)
OKLCHoklch(40.63% 0.164 282.7)
XYZxyz(9.5145, 5.9596, 32.5407)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42339D #8E9D33
analogous
#33599D #42339D #77339D
triadic
#42339D #9D4233 #339D42
tetradic
#42339D #9D3359 #8E9D33 #339D77
square
#42339D #9D3359 #8E9D33 #339D77
split-complementary
#42339D #9D7733 #599D33
monochromatic
#1B1541 #2F246F #42339D #5B49C4 #8477D3

Accessibility & contrast

On white

9.58
#42339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#42339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42339D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42339D#FFFFFF#000000##FFFFFF
##42339D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#114E63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42339d;
/* rgb */ color: rgb(66, 51, 157);
/* oklch */ color: oklch(40.6% 0.164 282.7);
Tailwind
colors: {
  custom: {
    50: '#806cbb',
    500: '#42339d',
    950: '#000000',
  },
}
SCSS
$custom: #42339d;
$custom-light: #806cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#42339d",
  "rgb": {
    "r": 66,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 248.491,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4063,
    "c": 0.16396,
    "h": 282.7
  },
  "luminance": 0.0596
}

Semantic roles & 50–950 ramp

primary
#42339D
secondary
#B1BB70
accent
#DA4DC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42339D

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

Preview Lab → · Contrast checker → · Palette generator →

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