#342FBE#342FBE

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

Color values

HEX#342FBE
RGBrgb(52, 47, 190)
HSLhsl(242, 60%, 46%)
HSVhsv(242, 75%, 75%)
CMYKcmyk(72.6%, 75.3%, 0%, 25.5%)
CIE-LABlab(30.59, 48.07, -73.29)
CIE-LCHlch(30.59, 87.64, 303.26°)
OKLaboklab(42.23% 0.0146 -0.212)
OKLCHoklch(42.23% 0.213 273.9)
XYZxyz(11.7239, 6.4796, 49.3380)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FBE #B9BE2F
analogous
#2F72BE #342FBE #7C2FBE
triadic
#342FBE #BE342F #2FBE34
tetradic
#342FBE #BE2F72 #B9BE2F #2FBE7C
square
#342FBE #BE2F72 #B9BE2F #2FBE7C
split-complementary
#342FBE #BE7C2F #72BE2F
monochromatic
#19175C #27238D #342FBE #5A55D5 #8986E1

Accessibility & contrast

On white

9.15
#342FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#342FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FBE
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FBE#FFFFFF#000000##FFFFFF
##342FBE1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342fbe;
/* rgb */ color: rgb(52, 47, 190);
/* oklch */ color: oklch(42.2% 0.212 273.9);
Tailwind
colors: {
  custom: {
    50: '#816ad3',
    500: '#342fbe',
    950: '#000000',
  },
}
SCSS
$custom: #342fbe;
$custom-light: #816ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#342fbe",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 242.098,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42232,
    "c": 0.2125,
    "h": 273.9
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#342FBE
secondary
#C8CB7E
accent
#E344DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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