#42339C#42339C

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

Color values

HEX#42339C
RGBrgb(66, 51, 156)
HSLhsl(249, 51%, 41%)
HSVhsv(249, 67%, 61%)
CMYKcmyk(57.7%, 67.3%, 0%, 38.8%)
CIE-LABlab(29.22, 36.53, -55.13)
CIE-LCHlch(29.22, 66.14, 303.53°)
OKLaboklab(40.54% 0.0363 -0.1586)
OKLCHoklch(40.54% 0.163 282.9)
XYZxyz(9.4295, 5.9256, 32.0929)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42339C #8D9C33
analogous
#33599C #42339C #76339C
triadic
#42339C #9C4233 #339C42
tetradic
#42339C #9C3359 #8D9C33 #339C76
square
#42339C #9C3359 #8D9C33 #339C76
split-complementary
#42339C #9C7633 #599C33
monochromatic
#1B1540 #2E246E #42339C #5A49C3 #8477D3

Accessibility & contrast

On white

9.61
#42339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42339C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42339C#FFFFFF#000000##FFFFFF
##42339C1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#134E63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42339c;
/* rgb */ color: rgb(66, 51, 156);
/* oklch */ color: oklch(40.5% 0.163 282.9);
Tailwind
colors: {
  custom: {
    50: '#806cba',
    500: '#42339c',
    950: '#000000',
  },
}
SCSS
$custom: #42339c;
$custom-light: #806cba;
$custom-dark: #000000;
JSON
{
  "hex": "#42339c",
  "rgb": {
    "r": 66,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 248.571,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40541,
    "c": 0.16265,
    "h": 282.9
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42339C

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

Preview Lab → · Contrast checker → · Palette generator →

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