#342FB8#342FB8

#342FB8 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.205 H 274.4°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#342FB8
RGBrgb(52, 47, 184)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 72%)
CMYKcmyk(71.7%, 74.5%, 0%, 27.8%)
CIE-LABlab(29.97, 46.13, -70.77)
CIE-LCHlch(29.97, 84.47, 303.10°)
OKLaboklab(41.61% 0.0157 -0.2047)
OKLCHoklch(41.61% 0.205 274.4)
XYZxyz(11.0815, 6.2227, 45.9552)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB8 #B3B82F
analogous
#2F6EB8 #342FB8 #792FB8
triadic
#342FB8 #B8342F #2FB834
tetradic
#342FB8 #B82F6E #B3B82F #2FB879
square
#342FB8 #B82F6E #B3B82F #2FB879
split-complementary
#342FB8 #B8792F #6EB82F
monochromatic
#181657 #262387 #342FB8 #5652D3 #8682DF

Accessibility & contrast

On white

9.35
#342FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342FB8
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB8#FFFFFF#000000##FFFFFF
##342FB81.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342fb8;
/* rgb */ color: rgb(52, 47, 184);
/* oklch */ color: oklch(41.6% 0.205 274.4);
Tailwind
colors: {
  custom: {
    50: '#806acf',
    500: '#342fb8',
    950: '#000000',
  },
}
SCSS
$custom: #342fb8;
$custom-light: #806acf;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb8",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 242.19,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41605,
    "c": 0.20527,
    "h": 274.4
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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