#342FB1#342FB1

#342FB1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.9% C 0.197 H 275.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#342FB1
RGBrgb(52, 47, 177)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 73%, 69%)
CMYKcmyk(70.6%, 73.4%, 0%, 30.6%)
CIE-LABlab(29.25, 43.84, -67.78)
CIE-LCHlch(29.25, 80.72, 302.89°)
OKLaboklab(40.88% 0.0171 -0.196)
OKLCHoklch(40.88% 0.197 275)
XYZxyz(10.3659, 5.9364, 42.1860)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB1 #ACB12F
analogous
#2F6BB1 #342FB1 #752FB1
triadic
#342FB1 #B1342F #2FB134
tetradic
#342FB1 #B12F6B #ACB12F #2FB175
square
#342FB1 #B12F6B #ACB12F #2FB175
split-complementary
#342FB1 #B1752F #6BB12F
monochromatic
#181550 #262281 #342FB1 #524DD0 #817EDD

Accessibility & contrast

On white

9.60
#342FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#342FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB1
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB1#FFFFFF#000000##FFFFFF
##342FB11.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342fb1;
/* rgb */ color: rgb(52, 47, 177);
/* oklch */ color: oklch(40.9% 0.197 275.0);
Tailwind
colors: {
  custom: {
    50: '#7e69ca',
    500: '#342fb1',
    950: '#000000',
  },
}
SCSS
$custom: #342fb1;
$custom-light: #7e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb1",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 242.308,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40883,
    "c": 0.19671,
    "h": 275
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#342FB1
secondary
#C2C576
accent
#E147DB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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