#342499#342499

#342499 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.178 H 279.3°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#342499
RGBrgb(52, 36, 153)
HSLhsl(248, 62%, 37%)
HSVhsv(248, 76%, 60%)
CMYKcmyk(66%, 76.5%, 0%, 40%)
CIE-LABlab(24.61, 42.19, -60.91)
CIE-LCHlch(24.61, 74.09, 304.71°)
OKLaboklab(36.86% 0.0287 -0.1759)
OKLCHoklch(36.86% 0.178 279.3)
XYZxyz(7.7950, 4.2911, 30.5483)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342499 #899924
analogous
#244F99 #342499 #6F2499
triadic
#342499 #993424 #249934
tetradic
#342499 #99244F #899924 #24996F
square
#342499 #99244F #899924 #24996F
split-complementary
#342499 #996F24 #4F9924
monochromatic
#120D36 #231867 #342499 #4530CB #6F5ED9

Accessibility & contrast

On white

11.30
#342499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342499
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342499#FFFFFF#000000##FFFFFF
##3424991.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342499;
/* rgb */ color: rgb(52, 36, 153);
/* oklch */ color: oklch(36.9% 0.178 279.3);
Tailwind
colors: {
  custom: {
    50: '#7a61b8',
    500: '#342499',
    950: '#000000',
  },
}
SCSS
$custom: #342499;
$custom-light: #7a61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342499",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 248.205,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3686,
    "c": 0.17818,
    "h": 279.3
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#342499
secondary
#B0BE5B
accent
#E543CF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #342499

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

Preview Lab → · Contrast checker → · Palette generator →

#342499 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva