#342B95#342B95

#342B95 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.166 H 278.6°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#342B95
RGBrgb(52, 43, 149)
HSLhsl(245, 55%, 38%)
HSVhsv(245, 71%, 58%)
CMYKcmyk(65.1%, 71.1%, 0%, 41.6%)
CIE-LABlab(25.64, 36.87, -56.75)
CIE-LCHlch(25.64, 67.68, 303.01°)
OKLaboklab(37.47% 0.0247 -0.1637)
OKLCHoklch(37.47% 0.166 278.6)
XYZxyz(7.7031, 4.6271, 28.9151)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B95 #8C952B
analogous
#2B5795 #342B95 #692B95
triadic
#342B95 #95342B #2B9534
tetradic
#342B95 #952B57 #8C952B #2B9569
square
#342B95 #952B57 #8C952B #2B9569
split-complementary
#342B95 #95692B #57952B
monochromatic
#131036 #231D66 #342B95 #4539C4 #7067D3

Accessibility & contrast

On white

10.91
#342B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#342B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B95
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B95#FFFFFF#000000##FFFFFF
##342B951.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342b95;
/* rgb */ color: rgb(52, 43, 149);
/* oklch */ color: oklch(37.5% 0.166 278.6);
Tailwind
colors: {
  custom: {
    50: '#7866b5',
    500: '#342b95',
    950: '#000000',
  },
}
SCSS
$custom: #342b95;
$custom-light: #7866b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342b95",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 245.094,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37473,
    "c": 0.16559,
    "h": 278.6
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#342B95
secondary
#B2BA62
accent
#DF49D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342B95

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

Preview Lab → · Contrast checker → · Palette generator →

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