#342DC0#342DC0

#342DC0 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.217 H 274.0°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#342DC0
RGBrgb(52, 45, 192)
HSLhsl(243, 62%, 46%)
HSVhsv(243, 77%, 75%)
CMYKcmyk(72.9%, 76.6%, 0%, 24.7%)
CIE-LABlab(30.43, 49.78, -74.74)
CIE-LCHlch(30.43, 89.79, 303.66°)
OKLaboklab(42.18% 0.015 -0.2162)
OKLCHoklch(42.18% 0.217 274)
XYZxyz(11.8658, 6.4114, 50.4711)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DC0 #B9C02D
analogous
#2D70C0 #342DC0 #7E2DC0
triadic
#342DC0 #C0342D #2DC034
tetradic
#342DC0 #C02D70 #B9C02D #2DC07E
square
#342DC0 #C02D70 #B9C02D #2DC07E
split-complementary
#342DC0 #C07E2D #70C02D
monochromatic
#19165D #27218E #342DC0 #5A53D7 #8985E2

Accessibility & contrast

On white

9.20
#342DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#342DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DC0
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DC0#FFFFFF#000000##FFFFFF
##342DC01.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC4
Deuteranopia (green-blind)
#0041BD
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342dc0;
/* rgb */ color: rgb(52, 45, 192);
/* oklch */ color: oklch(42.2% 0.217 274.0);
Tailwind
colors: {
  custom: {
    50: '#8169d4',
    500: '#342dc0',
    950: '#000000',
  },
}
SCSS
$custom: #342dc0;
$custom-light: #8169d4;
$custom-dark: #000000;
JSON
{
  "hex": "#342dc0",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 242.857,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42179,
    "c": 0.21672,
    "h": 274
  },
  "luminance": 0.06413
}

Semantic roles & 50–950 ramp

primary
#342DC0
secondary
#C8CC7D
accent
#E543DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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