#342199#342199

#342199 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.181 H 279.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#342199
RGBrgb(52, 33, 153)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 78%, 60%)
CMYKcmyk(66%, 78.4%, 0%, 40%)
CIE-LABlab(24.05, 43.77, -61.83)
CIE-LCHlch(24.05, 75.76, 305.30°)
OKLaboklab(36.47% 0.0305 -0.1785)
OKLCHoklch(36.47% 0.181 279.7)
XYZxyz(7.7080, 4.1171, 30.5193)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342199 #869921
analogous
#214A99 #342199 #702199
triadic
#342199 #993421 #219934
tetradic
#342199 #99214A #869921 #219970
square
#342199 #99214A #869921 #219970
split-complementary
#342199 #997021 #4A9921
monochromatic
#120B34 #231667 #342199 #452CCB #6E59DB

Accessibility & contrast

On white

11.52
#342199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342199
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342199#FFFFFF#000000##FFFFFF
##3421991.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342199;
/* rgb */ color: rgb(52, 33, 153);
/* oklch */ color: oklch(36.5% 0.181 279.7);
Tailwind
colors: {
  custom: {
    50: '#7a60b8',
    500: '#342199',
    950: '#000000',
  },
}
SCSS
$custom: #342199;
$custom-light: #7a60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342199",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 249.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36469,
    "c": 0.18109,
    "h": 279.7
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#342199
secondary
#AFBF56
accent
#E840CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #342199

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

Preview Lab → · Contrast checker → · Palette generator →

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