#342A91#342A91

#342A91 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.162 H 279.3°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#342A91
RGBrgb(52, 42, 145)
HSLhsl(246, 55%, 37%)
HSVhsv(246, 71%, 57%)
CMYKcmyk(64.1%, 71%, 0%, 43.1%)
CIE-LABlab(25.04, 36.14, -55.27)
CIE-LCHlch(25.04, 66.04, 303.18°)
OKLaboklab(36.93% 0.0261 -0.1594)
OKLCHoklch(36.93% 0.162 279.3)
XYZxyz(7.3533, 4.4298, 27.2501)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A91 #87912A
analogous
#2A5491 #342A91 #682A91
triadic
#342A91 #91342A #2A9134
tetradic
#342A91 #912A54 #87912A #2A9168
square
#342A91 #912A54 #87912A #2A9168
split-complementary
#342A91 #91682A #54912A
monochromatic
#120F32 #231C62 #342A91 #4538C0 #6E63D2

Accessibility & contrast

On white

11.13
#342A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A91
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A91#FFFFFF#000000##FFFFFF
##342A911.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00378F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342a91;
/* rgb */ color: rgb(52, 42, 145);
/* oklch */ color: oklch(36.9% 0.162 279.3);
Tailwind
colors: {
  custom: {
    50: '#7765b2',
    500: '#342a91',
    950: '#000000',
  },
}
SCSS
$custom: #342a91;
$custom-light: #7765b2;
$custom-dark: #000000;
JSON
{
  "hex": "#342a91",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 245.825,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.16154,
    "h": 279.3
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#342A91
secondary
#AFB85F
accent
#DE49D0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342A91

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

Preview Lab → · Contrast checker → · Palette generator →

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