#342A9B#342A9B

#342A9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.174 H 278.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#342A9B
RGBrgb(52, 42, 155)
HSLhsl(245, 57%, 39%)
HSVhsv(245, 73%, 61%)
CMYKcmyk(66.5%, 72.9%, 0%, 39.2%)
CIE-LABlab(26.02, 39.46, -59.82)
CIE-LCHlch(26.02, 71.66, 303.41°)
OKLaboklab(37.92% 0.0243 -0.1727)
OKLCHoklch(37.92% 0.174 278)
XYZxyz(8.1586, 4.7519, 31.4912)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A9B #919B2A
analogous
#2A589B #342A9B #6C2A9B
triadic
#342A9B #9B342A #2A9B34
tetradic
#342A9B #9B2A58 #919B2A #2A9B6C
square
#342A9B #9B2A58 #919B2A #2A9B6C
split-complementary
#342A9B #9B6C2A #589B2A
monochromatic
#14103B #241D6B #342A9B #4639C9 #7369D6

Accessibility & contrast

On white

10.77
#342A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#342A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A9B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A9B#FFFFFF#000000##FFFFFF
##342A9B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342a9b;
/* rgb */ color: rgb(52, 42, 155);
/* oklch */ color: oklch(37.9% 0.174 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a65ba',
    500: '#342a9b',
    950: '#000000',
  },
}
SCSS
$custom: #342a9b;
$custom-light: #7a65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342a9b",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 245.31,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37916,
    "c": 0.17442,
    "h": 278
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#342A9B
secondary
#B5BD64
accent
#E147D3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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