#342B93#342B93

#342B93 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.163 H 278.8°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#342B93
RGBrgb(52, 43, 147)
HSLhsl(245, 55%, 37%)
HSVhsv(245, 71%, 58%)
CMYKcmyk(64.6%, 70.7%, 0%, 42.4%)
CIE-LABlab(25.45, 36.20, -55.83)
CIE-LCHlch(25.45, 66.54, 302.96°)
OKLaboklab(37.28% 0.025 -0.1611)
OKLCHoklch(37.28% 0.163 278.8)
XYZxyz(7.5448, 4.5638, 28.0814)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B93 #8A932B
analogous
#2B5693 #342B93 #682B93
triadic
#342B93 #93342B #2B9334
tetradic
#342B93 #932B56 #8A932B #2B9368
square
#342B93 #932B56 #8A932B #2B9368
split-complementary
#342B93 #93682B #56932B
monochromatic
#130F34 #231D64 #342B93 #4539C2 #6F66D2

Accessibility & contrast

On white

10.98
#342B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B93
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B93#FFFFFF#000000##FFFFFF
##342B931.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003891
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342b93;
/* rgb */ color: rgb(52, 43, 147);
/* oklch */ color: oklch(37.3% 0.163 278.8);
Tailwind
colors: {
  custom: {
    50: '#7865b4',
    500: '#342b93',
    950: '#000000',
  },
}
SCSS
$custom: #342b93;
$custom-light: #7865b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342b93",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 147
  },
  "hsl": {
    "h": 245.192,
    "s": 54.737,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37278,
    "c": 0.16299,
    "h": 278.8
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#342B93
secondary
#B1B961
accent
#DE4AD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342B93

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

Preview Lab → · Contrast checker → · Palette generator →

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