#342FB7#342FB7

#342FB7 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.204 H 274.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#342FB7
RGBrgb(52, 47, 183)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 72%)
CMYKcmyk(71.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(29.86, 45.80, -70.34)
CIE-LCHlch(29.86, 83.94, 303.07°)
OKLaboklab(41.5% 0.0159 -0.2034)
OKLCHoklch(41.5% 0.204 274.5)
XYZxyz(10.9771, 6.1809, 45.4051)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB7 #B2B72F
analogous
#2F6EB7 #342FB7 #782FB7
triadic
#342FB7 #B7342F #2FB734
tetradic
#342FB7 #B72F6E #B2B72F #2FB778
square
#342FB7 #B72F6E #B2B72F #2FB778
split-complementary
#342FB7 #B7782F #6EB72F
monochromatic
#181656 #262286 #342FB7 #5651D2 #8582DF

Accessibility & contrast

On white

9.39
#342FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#342FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB7
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB7#FFFFFF#000000##FFFFFF
##342FB71.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#0040B5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342fb7;
/* rgb */ color: rgb(52, 47, 183);
/* oklch */ color: oklch(41.5% 0.204 274.5);
Tailwind
colors: {
  custom: {
    50: '#7f69ce',
    500: '#342fb7',
    950: '#000000',
  },
}
SCSS
$custom: #342fb7;
$custom-light: #7f69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb7",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 242.206,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41501,
    "c": 0.20406,
    "h": 274.5
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#342FB7
secondary
#C5C87A
accent
#E245DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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