#342EAD#342EAD

#342EAD is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.193 H 275.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#342EAD
RGBrgb(52, 46, 173)
HSLhsl(243, 58%, 43%)
HSVhsv(243, 73%, 68%)
CMYKcmyk(69.9%, 73.4%, 0%, 32.2%)
CIE-LABlab(28.64, 43.09, -66.39)
CIE-LCHlch(28.64, 79.15, 302.98°)
OKLaboklab(40.33% 0.0184 -0.1919)
OKLCHoklch(40.33% 0.193 275.5)
XYZxyz(9.9335, 5.7003, 40.1038)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EAD #A7AD2E
analogous
#2E67AD #342EAD #742EAD
triadic
#342EAD #AD342E #2EAD34
tetradic
#342EAD #AD2E67 #A7AD2E #2EAD74
square
#342EAD #AD2E67 #A7AD2E #2EAD74
split-complementary
#342EAD #AD742E #67AD2E
monochromatic
#17144C #25217D #342EAD #5049CF #7E7ADC

Accessibility & contrast

On white

9.81
#342EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#342EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EAD
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EAD#FFFFFF#000000##FFFFFF
##342EAD1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ead;
/* rgb */ color: rgb(52, 46, 173);
/* oklch */ color: oklch(40.3% 0.193 275.5);
Tailwind
colors: {
  custom: {
    50: '#7d68c7',
    500: '#342ead',
    950: '#000000',
  },
}
SCSS
$custom: #342ead;
$custom-light: #7d68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#342ead",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 242.835,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40329,
    "c": 0.19279,
    "h": 275.5
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#342EAD
secondary
#C0C473
accent
#E147DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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