#342EAC#342EAC

#342EAC is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.192 H 275.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#342EAC
RGBrgb(52, 46, 172)
HSLhsl(243, 58%, 43%)
HSVhsv(243, 73%, 67%)
CMYKcmyk(69.8%, 73.3%, 0%, 32.5%)
CIE-LABlab(28.54, 42.76, -65.96)
CIE-LCHlch(28.54, 78.61, 302.96°)
OKLaboklab(40.23% 0.0186 -0.1906)
OKLCHoklch(40.23% 0.192 275.6)
XYZxyz(9.8371, 5.6617, 39.5961)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EAC #A6AC2E
analogous
#2E67AC #342EAC #732EAC
triadic
#342EAC #AC342E #2EAC34
tetradic
#342EAC #AC2E67 #A6AC2E #2EAC73
square
#342EAC #AC2E67 #A6AC2E #2EAC73
split-complementary
#342EAC #AC732E #67AC2E
monochromatic
#17144B #25217C #342EAC #4F49CE #7E79DB

Accessibility & contrast

On white

9.85
#342EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EAC
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EAC#FFFFFF#000000##FFFFFF
##342EAC1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342eac;
/* rgb */ color: rgb(52, 46, 172);
/* oklch */ color: oklch(40.2% 0.192 275.6);
Tailwind
colors: {
  custom: {
    50: '#7d68c6',
    500: '#342eac',
    950: '#000000',
  },
}
SCSS
$custom: #342eac;
$custom-light: #7d68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#342eac",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 242.857,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40227,
    "c": 0.19155,
    "h": 275.6
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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