#42339E#42339E

#42339E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.165 H 282.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#42339E
RGBrgb(66, 51, 158)
HSLhsl(248, 51%, 41%)
HSVhsv(248, 68%, 62%)
CMYKcmyk(58.2%, 67.7%, 0%, 38%)
CIE-LABlab(29.40, 37.18, -56.06)
CIE-LCHlch(29.40, 67.27, 303.55°)
OKLaboklab(40.72% 0.036 -0.1613)
OKLCHoklch(40.72% 0.165 282.6)
XYZxyz(9.6002, 5.9939, 32.9922)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42339E #8F9E33
analogous
#33599E #42339E #77339E
triadic
#42339E #9E4233 #339E42
tetradic
#42339E #9E3359 #8F9E33 #339E77
square
#42339E #9E3359 #8F9E33 #339E77
split-complementary
#42339E #9E7733 #599E33
monochromatic
#1B1541 #2F2470 #42339E #5B4AC4 #8578D3

Accessibility & contrast

On white

9.55
#42339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#42339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42339E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42339E#FFFFFF#000000##FFFFFF
##42339E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#0F4E64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42339e;
/* rgb */ color: rgb(66, 51, 158);
/* oklch */ color: oklch(40.7% 0.165 282.6);
Tailwind
colors: {
  custom: {
    50: '#806cbc',
    500: '#42339e',
    950: '#000000',
  },
}
SCSS
$custom: #42339e;
$custom-light: #806cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#42339e",
  "rgb": {
    "r": 66,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 248.411,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.16526,
    "h": 282.6
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#42339E
secondary
#B1BC71
accent
#DB4DC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42339E

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

Preview Lab → · Contrast checker → · Palette generator →

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