#342FB0#342FB0

#342FB0 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.195 H 275.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#342FB0
RGBrgb(52, 47, 176)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 73%, 69%)
CMYKcmyk(70.5%, 73.3%, 0%, 31%)
CIE-LABlab(29.15, 43.51, -67.35)
CIE-LCHlch(29.15, 80.18, 302.86°)
OKLaboklab(40.78% 0.0173 -0.1947)
OKLCHoklch(40.78% 0.195 275.1)
XYZxyz(10.2666, 5.8967, 41.6630)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB0 #ABB02F
analogous
#2F6AB0 #342FB0 #742FB0
triadic
#342FB0 #B0342F #2FB034
tetradic
#342FB0 #B02F6A #ABB02F #2FB074
square
#342FB0 #B02F6A #ABB02F #2FB074
split-complementary
#342FB0 #B0742F #6AB02F
monochromatic
#17154F #262280 #342FB0 #524DCF #817DDC

Accessibility & contrast

On white

9.63
#342FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#342FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB0
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB0#FFFFFF#000000##FFFFFF
##342FB01.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#003FAE
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342fb0;
/* rgb */ color: rgb(52, 47, 176);
/* oklch */ color: oklch(40.8% 0.195 275.1);
Tailwind
colors: {
  custom: {
    50: '#7e69c9',
    500: '#342fb0',
    950: '#000000',
  },
}
SCSS
$custom: #342fb0;
$custom-light: #7e69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb0",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 242.326,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4078,
    "c": 0.19548,
    "h": 275.1
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#342FB0
secondary
#C2C576
accent
#E147DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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