#342899#342899

#342899 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.174 H 278.6°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#342899
RGBrgb(52, 40, 153)
HSLhsl(246, 59%, 38%)
HSVhsv(246, 74%, 60%)
CMYKcmyk(66%, 73.9%, 0%, 40%)
CIE-LABlab(25.40, 39.96, -59.61)
CIE-LCHlch(25.40, 71.76, 303.84°)
OKLaboklab(37.42% 0.0261 -0.1721)
OKLCHoklch(37.42% 0.174 278.6)
XYZxyz(7.9229, 4.5469, 30.5909)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342899 #8D9928
analogous
#285499 #342899 #6D2899
triadic
#342899 #993428 #289934
tetradic
#342899 #992854 #8D9928 #28996D
square
#342899 #992854 #8D9928 #28996D
split-complementary
#342899 #996D28 #549928
monochromatic
#130F38 #241B68 #342899 #4435CA #7165D7

Accessibility & contrast

On white

11.00
#342899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342899
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342899#FFFFFF#000000##FFFFFF
##3428991.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342899;
/* rgb */ color: rgb(52, 40, 153);
/* oklch */ color: oklch(37.4% 0.174 278.6);
Tailwind
colors: {
  custom: {
    50: '#7964b8',
    500: '#342899',
    950: '#000000',
  },
}
SCSS
$custom: #342899;
$custom-light: #7964b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342899",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 246.372,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37419,
    "c": 0.17404,
    "h": 278.6
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

primary
#342899
secondary
#B3BD60
accent
#E246D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342899

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

Preview Lab → · Contrast checker → · Palette generator →

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