#342EAB#342EAB

#342EAB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.190 H 275.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#342EAB
RGBrgb(52, 46, 171)
HSLhsl(243, 58%, 43%)
HSVhsv(243, 73%, 67%)
CMYKcmyk(69.6%, 73.1%, 0%, 32.9%)
CIE-LABlab(28.44, 42.43, -65.52)
CIE-LCHlch(28.44, 78.06, 302.93°)
OKLaboklab(40.13% 0.0188 -0.1894)
OKLCHoklch(40.13% 0.19 275.7)
XYZxyz(9.7414, 5.6234, 39.0922)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EAB #A5AB2E
analogous
#2E66AB #342EAB #722EAB
triadic
#342EAB #AB342E #2EAB34
tetradic
#342EAB #AB2E66 #A5AB2E #2EAB72
square
#342EAB #AB2E66 #A5AB2E #2EAB72
split-complementary
#342EAB #AB722E #66AB2E
monochromatic
#17144B #25217B #342EAB #4F48CE #7D79DB

Accessibility & contrast

On white

9.88
#342EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#342EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EAB
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EAB#FFFFFF#000000##FFFFFF
##342EAB1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342eab;
/* rgb */ color: rgb(52, 46, 171);
/* oklch */ color: oklch(40.1% 0.190 275.7);
Tailwind
colors: {
  custom: {
    50: '#7d68c5',
    500: '#342eab',
    950: '#000000',
  },
}
SCSS
$custom: #342eab;
$custom-light: #7d68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342eab",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 242.88,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40125,
    "c": 0.19031,
    "h": 275.7
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#342EAB
secondary
#BFC372
accent
#E147D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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