#42339F#42339F

#42339F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.167 H 282.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#42339F
RGBrgb(66, 51, 159)
HSLhsl(248, 51%, 41%)
HSVhsv(248, 68%, 62%)
CMYKcmyk(58.5%, 67.9%, 0%, 37.6%)
CIE-LABlab(29.48, 37.50, -56.53)
CIE-LCHlch(29.48, 67.83, 303.56°)
OKLaboklab(40.81% 0.0359 -0.1627)
OKLCHoklch(40.81% 0.167 282.4)
XYZxyz(9.6867, 6.0285, 33.4473)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42339F #909F33
analogous
#335A9F #42339F #78339F
triadic
#42339F #9F4233 #339F42
tetradic
#42339F #9F335A #909F33 #339F78
square
#42339F #9F335A #909F33 #339F78
split-complementary
#42339F #9F7833 #5A9F33
monochromatic
#1C1542 #2F2471 #42339F #5B4AC5 #8579D4

Accessibility & contrast

On white

9.52
#42339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#42339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42339F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42339F#FFFFFF#000000##FFFFFF
##42339F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#0D4F64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42339f;
/* rgb */ color: rgb(66, 51, 159);
/* oklch */ color: oklch(40.8% 0.167 282.4);
Tailwind
colors: {
  custom: {
    50: '#806cbc',
    500: '#42339f',
    950: '#000000',
  },
}
SCSS
$custom: #42339f;
$custom-light: #806cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#42339f",
  "rgb": {
    "r": 66,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 248.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40809,
    "c": 0.16656,
    "h": 282.4
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#42339F
secondary
#B2BC71
accent
#DB4DC7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42339F

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

Preview Lab → · Contrast checker → · Palette generator →

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