#342F95#342F95

#342F95 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.161 H 277.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#342F95
RGBrgb(52, 47, 149)
HSLhsl(243, 52%, 38%)
HSVhsv(243, 68%, 58%)
CMYKcmyk(65.1%, 68.5%, 0%, 41.6%)
CIE-LABlab(26.54, 34.43, -55.28)
CIE-LCHlch(26.54, 65.13, 301.92°)
OKLaboklab(38.12% 0.0216 -0.1594)
OKLCHoklch(38.12% 0.161 277.7)
XYZxyz(7.8558, 4.9324, 28.9660)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F95 #90952F
analogous
#2F5D95 #342F95 #672F95
triadic
#342F95 #95342F #2F9534
tetradic
#342F95 #952F5D #90952F #2F9567
square
#342F95 #952F5D #90952F #2F9567
split-complementary
#342F95 #95672F #5D952F
monochromatic
#141238 #242066 #342F95 #453FC2 #726DD1

Accessibility & contrast

On white

10.57
#342F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F95
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F95#FFFFFF#000000##FFFFFF
##342F951.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342f95;
/* rgb */ color: rgb(52, 47, 149);
/* oklch */ color: oklch(38.1% 0.161 277.7);
Tailwind
colors: {
  custom: {
    50: '#7868b5',
    500: '#342f95',
    950: '#000000',
  },
}
SCSS
$custom: #342f95;
$custom-light: #7868b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342f95",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 242.941,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38118,
    "c": 0.16089,
    "h": 277.7
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#342F95
secondary
#B4B867
accent
#DB4CD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F95

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

Preview Lab → · Contrast checker → · Palette generator →

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