#342CA1#342CA1

#342CA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.180 H 277.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#342CA1
RGBrgb(52, 44, 161)
HSLhsl(244, 57%, 40%)
HSVhsv(244, 73%, 63%)
CMYKcmyk(67.7%, 72.7%, 0%, 36.9%)
CIE-LABlab(27.03, 40.28, -61.81)
CIE-LCHlch(27.03, 73.78, 303.09°)
OKLaboklab(38.82% 0.0219 -0.1785)
OKLCHoklch(38.82% 0.18 277)
XYZxyz(8.7478, 5.1039, 34.2355)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA1 #99A12C
analogous
#2C5EA1 #342CA1 #6F2CA1
triadic
#342CA1 #A1342C #2CA134
tetradic
#342CA1 #A12C5E #99A12C #2CA16F
square
#342CA1 #A12C5E #99A12C #2CA16F
split-complementary
#342CA1 #A16F2C #5EA12C
monochromatic
#151241 #241F71 #342CA1 #4940CB #7770D8

Accessibility & contrast

On white

10.39
#342CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#342CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA1
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA1#FFFFFF#000000##FFFFFF
##342CA11.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342ca1;
/* rgb */ color: rgb(52, 44, 161);
/* oklch */ color: oklch(38.8% 0.180 277.0);
Tailwind
colors: {
  custom: {
    50: '#7b67be',
    500: '#342ca1',
    950: '#000000',
  },
}
SCSS
$custom: #342ca1;
$custom-light: #7b67be;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca1",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 244.103,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38817,
    "c": 0.17987,
    "h": 277
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#342CA1
secondary
#B9BF6A
accent
#E047D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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