#342299#342299

#342299 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.180 H 279.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#342299
RGBrgb(52, 34, 153)
HSLhsl(249, 64%, 37%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(66%, 77.8%, 0%, 40%)
CIE-LABlab(24.24, 43.25, -61.53)
CIE-LCHlch(24.24, 75.21, 305.11°)
OKLaboklab(36.6% 0.0299 -0.1776)
OKLCHoklch(36.6% 0.18 279.6)
XYZxyz(7.7361, 4.1734, 30.5287)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342299 #879922
analogous
#224C99 #342299 #702299
triadic
#342299 #993422 #229934
tetradic
#342299 #99224C #879922 #229970
square
#342299 #99224C #879922 #229970
split-complementary
#342299 #997022 #4C9922
monochromatic
#120C35 #231767 #342299 #452DCB #6E5BDB

Accessibility & contrast

On white

11.45
#342299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342299
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342299#FFFFFF#000000##FFFFFF
##3422991.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342299;
/* rgb */ color: rgb(52, 34, 153);
/* oklch */ color: oklch(36.6% 0.180 279.6);
Tailwind
colors: {
  custom: {
    50: '#7a60b8',
    500: '#342299',
    950: '#000000',
  },
}
SCSS
$custom: #342299;
$custom-light: #7a60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342299",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 249.076,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36596,
    "c": 0.18014,
    "h": 279.6
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#342299
secondary
#AFBF58
accent
#E741CE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #342299

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

Preview Lab → · Contrast checker → · Palette generator →

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