#342FC0#342FC0

#342FC0 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.4% C 0.215 H 273.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#342FC0
RGBrgb(52, 47, 192)
HSLhsl(242, 61%, 47%)
HSVhsv(242, 76%, 75%)
CMYKcmyk(72.9%, 75.5%, 0%, 24.7%)
CIE-LABlab(30.80, 48.71, -74.12)
CIE-LCHlch(30.80, 88.69, 303.31°)
OKLaboklab(42.44% 0.0142 -0.2144)
OKLCHoklch(42.44% 0.215 273.8)
XYZxyz(11.9439, 6.5677, 50.4972)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FC0 #BBC02F
analogous
#2F73C0 #342FC0 #7D2FC0
triadic
#342FC0 #C0342F #2FC034
tetradic
#342FC0 #C02F73 #BBC02F #2FC07D
square
#342FC0 #C02F73 #BBC02F #2FC07D
split-complementary
#342FC0 #C07D2F #73C02F
monochromatic
#19175E #27238F #342FC0 #5B56D6 #8B88E2

Accessibility & contrast

On white

9.08
#342FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#342FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FC0
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FC0#FFFFFF#000000##FFFFFF
##342FC01.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC4
Deuteranopia (green-blind)
#0042BD
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342fc0;
/* rgb */ color: rgb(52, 47, 192);
/* oklch */ color: oklch(42.4% 0.215 273.8);
Tailwind
colors: {
  custom: {
    50: '#816ad4',
    500: '#342fc0',
    950: '#000000',
  },
}
SCSS
$custom: #342fc0;
$custom-light: #816ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#342fc0",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 242.069,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.21489,
    "h": 273.8
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#342FC0
secondary
#C9CB7F
accent
#E444DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #342FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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