#342FC9#342FC9

#342FC9 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.226 H 273.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#342FC9
RGBrgb(52, 47, 201)
HSLhsl(242, 62%, 49%)
HSVhsv(242, 77%, 79%)
CMYKcmyk(74.1%, 76.6%, 0%, 21.2%)
CIE-LABlab(31.76, 51.57, -77.81)
CIE-LCHlch(31.76, 93.35, 303.54°)
OKLaboklab(43.4% 0.0123 -0.2252)
OKLCHoklch(43.4% 0.226 273.1)
XYZxyz(12.9718, 6.9788, 55.9104)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FC9 #C4C92F
analogous
#2F77C9 #342FC9 #812FC9
triadic
#342FC9 #C9342F #2FC934
tetradic
#342FC9 #C92F77 #C4C92F #2FC981
square
#342FC9 #C92F77 #C4C92F #2FC981
split-complementary
#342FC9 #C9812F #77C92F
monochromatic
#1A1866 #272397 #342FC9 #605CD9 #918EE5

Accessibility & contrast

On white

8.76
#342FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#342FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FC9
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FC9#FFFFFF#000000##FFFFFF
##342FC91.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CD
Deuteranopia (green-blind)
#0043C6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #342fc9;
/* rgb */ color: rgb(52, 47, 201);
/* oklch */ color: oklch(43.4% 0.226 273.1);
Tailwind
colors: {
  custom: {
    50: '#836adb',
    500: '#342fc9',
    950: '#000000',
  },
}
SCSS
$custom: #342fc9;
$custom-light: #836adb;
$custom-dark: #000000;
JSON
{
  "hex": "#342fc9",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 241.948,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.43399,
    "c": 0.2255,
    "h": 273.1
  },
  "luminance": 0.0698
}

Semantic roles & 50–950 ramp

primary
#342FC9
secondary
#CCCF85
accent
#E543E0
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #342FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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