#342EBF#342EBF

#342EBF is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.215 H 274.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#342EBF
RGBrgb(52, 46, 191)
HSLhsl(242, 61%, 46%)
HSVhsv(242, 76%, 75%)
CMYKcmyk(72.8%, 75.9%, 0%, 25.1%)
CIE-LABlab(30.51, 48.93, -74.01)
CIE-LCHlch(30.51, 88.72, 303.47°)
OKLaboklab(42.2% 0.0148 -0.2141)
OKLCHoklch(42.2% 0.215 274)
XYZxyz(11.7940, 6.4445, 49.9025)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EBF #B9BF2E
analogous
#2E71BF #342EBF #7D2EBF
triadic
#342EBF #BF342E #2EBF34
tetradic
#342EBF #BF2E71 #B9BF2E #2EBF7D
square
#342EBF #BF2E71 #B9BF2E #2EBF7D
split-complementary
#342EBF #BF7D2E #71BF2E
monochromatic
#19165C #27228E #342EBF #5A54D6 #8986E2

Accessibility & contrast

On white

9.17
#342EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#342EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EBF
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EBF#FFFFFF#000000##FFFFFF
##342EBF1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ebf;
/* rgb */ color: rgb(52, 46, 191);
/* oklch */ color: oklch(42.2% 0.215 274.0);
Tailwind
colors: {
  custom: {
    50: '#8169d4',
    500: '#342ebf',
    950: '#000000',
  },
}
SCSS
$custom: #342ebf;
$custom-light: #8169d4;
$custom-dark: #000000;
JSON
{
  "hex": "#342ebf",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 242.483,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.21462,
    "h": 274
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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