#342EA9#342EA9

#342EA9 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.188 H 275.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#342EA9
RGBrgb(52, 46, 169)
HSLhsl(243, 57%, 42%)
HSVhsv(243, 73%, 66%)
CMYKcmyk(69.2%, 72.8%, 0%, 33.7%)
CIE-LABlab(28.24, 41.77, -64.65)
CIE-LCHlch(28.24, 76.97, 302.87°)
OKLaboklab(39.92% 0.0191 -0.1868)
OKLCHoklch(39.92% 0.188 275.8)
XYZxyz(9.5522, 5.5478, 38.0958)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA9 #A3A92E
analogous
#2E66A9 #342EA9 #722EA9
triadic
#342EA9 #A9342E #2EA934
tetradic
#342EA9 #A92E66 #A3A92E #2EA972
square
#342EA9 #A92E66 #A3A92E #2EA972
split-complementary
#342EA9 #A9722E #66A92E
monochromatic
#161449 #252179 #342EA9 #4E47CD #7C77DA

Accessibility & contrast

On white

9.95
#342EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#342EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA9
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA9#FFFFFF#000000##FFFFFF
##342EA91.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342ea9;
/* rgb */ color: rgb(52, 46, 169);
/* oklch */ color: oklch(39.9% 0.188 275.8);
Tailwind
colors: {
  custom: {
    50: '#7c68c4',
    500: '#342ea9',
    950: '#000000',
  },
}
SCSS
$custom: #342ea9;
$custom-light: #7c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea9",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 242.927,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39922,
    "c": 0.18781,
    "h": 275.8
  },
  "luminance": 0.05549
}

Semantic roles & 50–950 ramp

primary
#342EA9
secondary
#BEC271
accent
#E047D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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