#342799#342799

#342799 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.175 H 278.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#342799
RGBrgb(52, 39, 153)
HSLhsl(247, 59%, 38%)
HSVhsv(247, 75%, 60%)
CMYKcmyk(66%, 74.5%, 0%, 40%)
CIE-LABlab(25.20, 40.52, -59.94)
CIE-LCHlch(25.20, 72.35, 304.06°)
OKLaboklab(37.28% 0.0267 -0.173)
OKLCHoklch(37.28% 0.175 278.8)
XYZxyz(7.8896, 4.4804, 30.5798)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342799 #8C9927
analogous
#275399 #342799 #6D2799
triadic
#342799 #993427 #279934
tetradic
#342799 #992753 #8C9927 #27996D
square
#342799 #992753 #8C9927 #27996D
split-complementary
#342799 #996D27 #539927
monochromatic
#130E37 #231B68 #342799 #4533CA #7063D7

Accessibility & contrast

On white

11.07
#342799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342799
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342799#FFFFFF#000000##FFFFFF
##3427991.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342799;
/* rgb */ color: rgb(52, 39, 153);
/* oklch */ color: oklch(37.3% 0.175 278.8);
Tailwind
colors: {
  custom: {
    50: '#7963b8',
    500: '#342799',
    950: '#000000',
  },
}
SCSS
$custom: #342799;
$custom-light: #7963b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342799",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 246.842,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37275,
    "c": 0.1751,
    "h": 278.8
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#342799
secondary
#B2BD5F
accent
#E345D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342799

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

Preview Lab → · Contrast checker → · Palette generator →

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