#342C95#342C95

#342C95 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.164 H 278.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#342C95
RGBrgb(52, 44, 149)
HSLhsl(245, 54%, 38%)
HSVhsv(245, 70%, 58%)
CMYKcmyk(65.1%, 70.5%, 0%, 41.6%)
CIE-LABlab(25.86, 36.27, -56.39)
CIE-LCHlch(25.86, 67.05, 302.75°)
OKLaboklab(37.63% 0.0239 -0.1627)
OKLCHoklch(37.63% 0.164 278.4)
XYZxyz(7.7399, 4.7007, 28.9274)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C95 #8D952C
analogous
#2C5995 #342C95 #682C95
triadic
#342C95 #95342C #2C9534
tetradic
#342C95 #952C59 #8D952C #2C9568
square
#342C95 #952C59 #8D952C #2C9568
split-complementary
#342C95 #95682C #59952C
monochromatic
#131037 #241E66 #342C95 #443AC4 #7169D3

Accessibility & contrast

On white

10.82
#342C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#342C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C95
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C95#FFFFFF#000000##FFFFFF
##342C951.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342c95;
/* rgb */ color: rgb(52, 44, 149);
/* oklch */ color: oklch(37.6% 0.164 278.4);
Tailwind
colors: {
  custom: {
    50: '#7866b5',
    500: '#342c95',
    950: '#000000',
  },
}
SCSS
$custom: #342c95;
$custom-light: #7866b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342c95",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 244.571,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37631,
    "c": 0.16444,
    "h": 278.4
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#342C95
secondary
#B3B964
accent
#DE4AD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C95

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

Preview Lab → · Contrast checker → · Palette generator →

#342C95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva