#342B97#342B97

#342B97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.168 H 278.3°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#342B97
RGBrgb(52, 43, 151)
HSLhsl(245, 56%, 38%)
HSVhsv(245, 72%, 59%)
CMYKcmyk(65.6%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.84, 37.54, -57.67)
CIE-LCHlch(25.84, 68.81, 303.07°)
OKLaboklab(37.67% 0.0243 -0.1664)
OKLCHoklch(37.67% 0.168 278.3)
XYZxyz(7.8642, 4.6915, 29.7633)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B97 #8E972B
analogous
#2B5897 #342B97 #6A2B97
triadic
#342B97 #97342B #2B9734
tetradic
#342B97 #972B58 #8E972B #2B976A
square
#342B97 #972B58 #8E972B #2B976A
split-complementary
#342B97 #976A2B #58972B
monochromatic
#131038 #241D67 #342B97 #4439C7 #7168D4

Accessibility & contrast

On white

10.83
#342B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B97
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B97#FFFFFF#000000##FFFFFF
##342B971.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342b97;
/* rgb */ color: rgb(52, 43, 151);
/* oklch */ color: oklch(37.7% 0.168 278.3);
Tailwind
colors: {
  custom: {
    50: '#7966b7',
    500: '#342b97',
    950: '#000000',
  },
}
SCSS
$custom: #342b97;
$custom-light: #7966b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342b97",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 245,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3767,
    "c": 0.16819,
    "h": 278.3
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342B97

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

Preview Lab → · Contrast checker → · Palette generator →

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