#342A95#342A95

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

Color values

HEX#342A95
RGBrgb(52, 42, 149)
HSLhsl(246, 56%, 37%)
HSVhsv(246, 72%, 58%)
CMYKcmyk(65.1%, 71.8%, 0%, 41.6%)
CIE-LABlab(25.43, 37.47, -57.11)
CIE-LCHlch(25.43, 68.30, 303.27°)
OKLaboklab(37.32% 0.0254 -0.1648)
OKLCHoklch(37.32% 0.167 278.8)
XYZxyz(7.6672, 4.5553, 28.9032)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A95 #8B952A
analogous
#2A5695 #342A95 #692A95
triadic
#342A95 #95342A #2A9534
tetradic
#342A95 #952A56 #8B952A #2A9569
square
#342A95 #952A56 #8B952A #2A9569
split-complementary
#342A95 #95692A #56952A
monochromatic
#130F36 #231D65 #342A95 #4537C5 #7066D4

Accessibility & contrast

On white

10.99
#342A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A95
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A95#FFFFFF#000000##FFFFFF
##342A951.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342a95;
/* rgb */ color: rgb(52, 42, 149);
/* oklch */ color: oklch(37.3% 0.167 278.8);
Tailwind
colors: {
  custom: {
    50: '#7865b5',
    500: '#342a95',
    950: '#000000',
  },
}
SCSS
$custom: #342a95;
$custom-light: #7865b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342a95",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 245.607,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37318,
    "c": 0.16673,
    "h": 278.8
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#342A95
secondary
#B2BA61
accent
#DF48D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342A95

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

Preview Lab → · Contrast checker → · Palette generator →

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