#342FB2#342FB2

#342FB2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.198 H 274.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#342FB2
RGBrgb(52, 47, 178)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 74%, 70%)
CMYKcmyk(70.8%, 73.6%, 0%, 30.2%)
CIE-LABlab(29.35, 44.17, -68.21)
CIE-LCHlch(29.35, 81.26, 302.92°)
OKLaboklab(40.99% 0.0169 -0.1972)
OKLCHoklch(40.99% 0.198 274.9)
XYZxyz(10.4659, 5.9764, 42.7129)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB2 #ADB22F
analogous
#2F6CB2 #342FB2 #762FB2
triadic
#342FB2 #B2342F #2FB234
tetradic
#342FB2 #B22F6C #ADB22F #2FB276
square
#342FB2 #B22F6C #ADB22F #2FB276
split-complementary
#342FB2 #B2762F #6CB22F
monochromatic
#181551 #262282 #342FB2 #534ED0 #827EDD

Accessibility & contrast

On white

9.57
#342FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#342FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB2
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB2#FFFFFF#000000##FFFFFF
##342FB21.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342fb2;
/* rgb */ color: rgb(52, 47, 178);
/* oklch */ color: oklch(41.0% 0.198 274.9);
Tailwind
colors: {
  custom: {
    50: '#7e69ca',
    500: '#342fb2',
    950: '#000000',
  },
}
SCSS
$custom: #342fb2;
$custom-light: #7e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb2",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 242.29,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40985,
    "c": 0.19795,
    "h": 274.9
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#342FB2
secondary
#C3C677
accent
#E146DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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