#342291#342291

#342291 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.170 H 280.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#342291
RGBrgb(52, 34, 145)
HSLhsl(250, 62%, 35%)
HSVhsv(250, 77%, 57%)
CMYKcmyk(64.1%, 76.6%, 0%, 43.1%)
CIE-LABlab(23.40, 40.73, -57.98)
CIE-LCHlch(23.40, 70.86, 305.09°)
OKLaboklab(35.76% 0.032 -0.1673)
OKLCHoklch(35.76% 0.17 280.8)
XYZxyz(7.0974, 3.9179, 27.1648)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342291 #7F9122
analogous
#224791 #342291 #6C2291
triadic
#342291 #913422 #229134
tetradic
#342291 #912247 #7F9122 #22916C
square
#342291 #912247 #7F9122 #22916C
split-complementary
#342291 #916C22 #479122
monochromatic
#100B2E #22165F #342291 #462EC3 #6B56D7

Accessibility & contrast

On white

11.77
#342291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342291
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342291#FFFFFF#000000##FFFFFF
##3422911.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342291;
/* rgb */ color: rgb(52, 34, 145);
/* oklch */ color: oklch(35.8% 0.170 280.8);
Tailwind
colors: {
  custom: {
    50: '#7860b2',
    500: '#342291',
    950: '#000000',
  },
}
SCSS
$custom: #342291;
$custom-light: #7860b2;
$custom-dark: #000000;
JSON
{
  "hex": "#342291",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 249.73,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35756,
    "c": 0.17031,
    "h": 280.8
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#342291
secondary
#AABB53
accent
#E543CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342291

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

Preview Lab → · Contrast checker → · Palette generator →

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