#342FBF#342FBF

#342FBF is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.214 H 273.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#342FBF
RGBrgb(52, 47, 191)
HSLhsl(242, 61%, 47%)
HSVhsv(242, 75%, 75%)
CMYKcmyk(72.8%, 75.4%, 0%, 25.1%)
CIE-LABlab(30.70, 48.39, -73.70)
CIE-LCHlch(30.70, 88.17, 303.29°)
OKLaboklab(42.34% 0.0144 -0.2132)
OKLCHoklch(42.34% 0.214 273.9)
XYZxyz(11.8335, 6.5235, 49.9156)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FBF #BABF2F
analogous
#2F72BF #342FBF #7C2FBF
triadic
#342FBF #BF342F #2FBF34
tetradic
#342FBF #BF2F72 #BABF2F #2FBF7C
square
#342FBF #BF2F72 #BABF2F #2FBF7C
split-complementary
#342FBF #BF7C2F #72BF2F
monochromatic
#19175D #27238E #342FBF #5A56D5 #8A87E1

Accessibility & contrast

On white

9.11
#342FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#342FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FBF
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FBF#FFFFFF#000000##FFFFFF
##342FBF1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC3
Deuteranopia (green-blind)
#0041BC
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342fbf;
/* rgb */ color: rgb(52, 47, 191);
/* oklch */ color: oklch(42.3% 0.214 273.9);
Tailwind
colors: {
  custom: {
    50: '#816ad4',
    500: '#342fbf',
    950: '#000000',
  },
}
SCSS
$custom: #342fbf;
$custom-light: #816ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#342fbf",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 242.083,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42337,
    "c": 0.21369,
    "h": 273.9
  },
  "luminance": 0.06525
}

Semantic roles & 50–950 ramp

primary
#342FBF
secondary
#C8CB7F
accent
#E444DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #342FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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