#342FCA#342FCA

#342FCA is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.5% C 0.227 H 273.1°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#342FCA
RGBrgb(52, 47, 202)
HSLhsl(242, 62%, 49%)
HSVhsv(242, 77%, 79%)
CMYKcmyk(74.3%, 76.7%, 0%, 20.8%)
CIE-LABlab(31.87, 51.89, -78.22)
CIE-LCHlch(31.87, 93.86, 303.56°)
OKLaboklab(43.51% 0.0121 -0.2263)
OKLCHoklch(43.51% 0.227 273.1)
XYZxyz(13.0898, 7.0260, 56.5320)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FCA #C5CA2F
analogous
#2F78CA #342FCA #812FCA
triadic
#342FCA #CA342F #2FCA34
tetradic
#342FCA #CA2F78 #C5CA2F #2FCA81
square
#342FCA #CA2F78 #C5CA2F #2FCA81
split-complementary
#342FCA #CA812F #78CA2F
monochromatic
#1A1867 #272398 #342FCA #615DD9 #918FE5

Accessibility & contrast

On white

8.73
#342FCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#342FCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FCA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FCA#FFFFFF#000000##FFFFFF
##342FCA1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #342fca;
/* rgb */ color: rgb(52, 47, 202);
/* oklch */ color: oklch(43.5% 0.227 273.1);
Tailwind
colors: {
  custom: {
    50: '#846adc',
    500: '#342fca',
    950: '#000000',
  },
}
SCSS
$custom: #342fca;
$custom-light: #846adc;
$custom-dark: #000000;
JSON
{
  "hex": "#342fca",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 241.935,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43506,
    "c": 0.22666,
    "h": 273.1
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#342FCA
secondary
#CDCF86
accent
#E542E0
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #342FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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