#342FB3#342FB3

#342FB3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.1% C 0.199 H 274.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#342FB3
RGBrgb(52, 47, 179)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 74%, 70%)
CMYKcmyk(70.9%, 73.7%, 0%, 29.8%)
CIE-LABlab(29.45, 44.49, -68.64)
CIE-LCHlch(29.45, 81.80, 302.95°)
OKLaboklab(41.09% 0.0167 -0.1985)
OKLCHoklch(41.09% 0.199 274.8)
XYZxyz(10.5667, 6.0168, 43.2436)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB3 #AEB32F
analogous
#2F6CB3 #342FB3 #762FB3
triadic
#342FB3 #B3342F #2FB334
tetradic
#342FB3 #B32F6C #AEB32F #2FB376
square
#342FB3 #B32F6C #AEB32F #2FB376
split-complementary
#342FB3 #B3762F #6CB32F
monochromatic
#181652 #262283 #342FB3 #534FD1 #837FDD

Accessibility & contrast

On white

9.53
#342FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342FB3
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB3#FFFFFF#000000##FFFFFF
##342FB31.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342fb3;
/* rgb */ color: rgb(52, 47, 179);
/* oklch */ color: oklch(41.1% 0.199 274.8);
Tailwind
colors: {
  custom: {
    50: '#7e69cb',
    500: '#342fb3',
    950: '#000000',
  },
}
SCSS
$custom: #342fb3;
$custom-light: #7e69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb3",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 242.273,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41088,
    "c": 0.19917,
    "h": 274.8
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#342FB3
secondary
#C3C678
accent
#E246DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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