#342FC8#342FC8

#342FC8 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.3% C 0.224 H 273.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#342FC8
RGBrgb(52, 47, 200)
HSLhsl(242, 62%, 48%)
HSVhsv(242, 77%, 78%)
CMYKcmyk(74%, 76.5%, 0%, 21.6%)
CIE-LABlab(31.65, 51.26, -77.41)
CIE-LCHlch(31.65, 92.84, 303.51°)
OKLaboklab(43.29% 0.0125 -0.224)
OKLCHoklch(43.29% 0.224 273.2)
XYZxyz(12.8545, 6.9319, 55.2929)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FC8 #C3C82F
analogous
#2F76C8 #342FC8 #802FC8
triadic
#342FC8 #C8342F #2FC834
tetradic
#342FC8 #C82F76 #C3C82F #2FC880
square
#342FC8 #C82F76 #C3C82F #2FC880
split-complementary
#342FC8 #C8802F #76C82F
monochromatic
#1A1865 #272396 #342FC8 #605CD9 #908DE4

Accessibility & contrast

On white

8.80
#342FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#342FC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FC8
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FC8#FFFFFF#000000##FFFFFF
##342FC81.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CC
Deuteranopia (green-blind)
#0043C5
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342fc8;
/* rgb */ color: rgb(52, 47, 200);
/* oklch */ color: oklch(43.3% 0.224 273.2);
Tailwind
colors: {
  custom: {
    50: '#836ada',
    500: '#342fc8',
    950: '#000000',
  },
}
SCSS
$custom: #342fc8;
$custom-light: #836ada;
$custom-dark: #000000;
JSON
{
  "hex": "#342fc8",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 241.961,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43292,
    "c": 0.22433,
    "h": 273.2
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#342FC8
secondary
#CCCF84
accent
#E543E0
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #342FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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