#342E95#342E95

#342E95 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.162 H 277.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#342E95
RGBrgb(52, 46, 149)
HSLhsl(243, 53%, 38%)
HSVhsv(243, 69%, 58%)
CMYKcmyk(65.1%, 69.1%, 0%, 41.6%)
CIE-LABlab(26.31, 35.05, -55.66)
CIE-LCHlch(26.31, 65.77, 302.20°)
OKLaboklab(37.95% 0.0224 -0.1605)
OKLCHoklch(37.95% 0.162 277.9)
XYZxyz(7.8162, 4.8533, 28.9528)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E95 #8F952E
analogous
#2E5B95 #342E95 #672E95
triadic
#342E95 #95342E #2E9534
tetradic
#342E95 #952E5B #8F952E #2E9567
square
#342E95 #952E5B #8F952E #2E9567
split-complementary
#342E95 #95672E #5B952E
monochromatic
#131137 #242066 #342E95 #453DC3 #726CD2

Accessibility & contrast

On white

10.66
#342E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#342E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E95
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E95#FFFFFF#000000##FFFFFF
##342E951.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342e95;
/* rgb */ color: rgb(52, 46, 149);
/* oklch */ color: oklch(38.0% 0.162 277.9);
Tailwind
colors: {
  custom: {
    50: '#7867b5',
    500: '#342e95',
    950: '#000000',
  },
}
SCSS
$custom: #342e95;
$custom-light: #7867b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342e95",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 243.495,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37953,
    "c": 0.16209,
    "h": 277.9
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#342E95
secondary
#B4B966
accent
#DC4CD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E95

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

Preview Lab → · Contrast checker → · Palette generator →

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