#342EAE#342EAE

#342EAE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.194 H 275.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#342EAE
RGBrgb(52, 46, 174)
HSLhsl(243, 58%, 43%)
HSVhsv(243, 74%, 68%)
CMYKcmyk(70.1%, 73.6%, 0%, 31.8%)
CIE-LABlab(28.74, 43.42, -66.82)
CIE-LCHlch(28.74, 79.69, 303.01°)
OKLaboklab(40.43% 0.0182 -0.1932)
OKLCHoklch(40.43% 0.194 275.4)
XYZxyz(10.0306, 5.7391, 40.6153)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EAE #A8AE2E
analogous
#2E68AE #342EAE #742EAE
triadic
#342EAE #AE342E #2EAE34
tetradic
#342EAE #AE2E68 #A8AE2E #2EAE74
square
#342EAE #AE2E68 #A8AE2E #2EAE74
split-complementary
#342EAE #AE742E #68AE2E
monochromatic
#17144D #26217E #342EAE #504ACF #7F7ADC

Accessibility & contrast

On white

9.78
#342EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#342EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EAE
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EAE#FFFFFF#000000##FFFFFF
##342EAE1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342eae;
/* rgb */ color: rgb(52, 46, 174);
/* oklch */ color: oklch(40.4% 0.194 275.4);
Tailwind
colors: {
  custom: {
    50: '#7d68c7',
    500: '#342eae',
    950: '#000000',
  },
}
SCSS
$custom: #342eae;
$custom-light: #7d68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#342eae",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 242.813,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40431,
    "c": 0.19402,
    "h": 275.4
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#342EAE
secondary
#C0C474
accent
#E146DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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