#342B9D#342B9D

#342B9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.176 H 277.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#342B9D
RGBrgb(52, 43, 157)
HSLhsl(245, 57%, 39%)
HSVhsv(245, 73%, 62%)
CMYKcmyk(66.9%, 72.6%, 0%, 38.4%)
CIE-LABlab(26.42, 39.54, -60.37)
CIE-LCHlch(26.42, 72.17, 303.22°)
OKLaboklab(38.27% 0.0233 -0.1743)
OKLCHoklch(38.27% 0.176 277.6)
XYZxyz(8.3639, 4.8914, 32.3951)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B9D #949D2B
analogous
#2B5B9D #342B9D #6D2B9D
triadic
#342B9D #9D342B #2B9D34
tetradic
#342B9D #9D2B5B #949D2B #2B9D6D
square
#342B9D #9D2B5B #949D2B #2B9D6D
split-complementary
#342B9D #9D6D2B #5B9D2B
monochromatic
#14113D #241E6D #342B9D #473CCA #746CD7

Accessibility & contrast

On white

10.61
#342B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#342B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B9D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B9D#FFFFFF#000000##FFFFFF
##342B9D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342b9d;
/* rgb */ color: rgb(52, 43, 157);
/* oklch */ color: oklch(38.3% 0.176 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a66bb',
    500: '#342b9d',
    950: '#000000',
  },
}
SCSS
$custom: #342b9d;
$custom-light: #7a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#342b9d",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 244.737,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.17587,
    "h": 277.6
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#342B9D
secondary
#B7BD66
accent
#E048D4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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