#342EBB#342EBB

#342EBB is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.210 H 274.3°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#342EBB
RGBrgb(52, 46, 187)
HSLhsl(243, 61%, 46%)
HSVhsv(243, 75%, 73%)
CMYKcmyk(72.2%, 75.4%, 0%, 26.7%)
CIE-LABlab(30.09, 47.65, -72.35)
CIE-LCHlch(30.09, 86.63, 303.37°)
OKLaboklab(41.78% 0.0156 -0.2093)
OKLCHoklch(41.78% 0.21 274.3)
XYZxyz(11.3598, 6.2708, 47.6158)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EBB #B5BB2E
analogous
#2E6EBB #342EBB #7A2EBB
triadic
#342EBB #BB342E #2EBB34
tetradic
#342EBB #BB2E6E #B5BB2E #2EBB7A
square
#342EBB #BB2E6E #B5BB2E #2EBB7A
split-complementary
#342EBB #BB7A2E #6EBB2E
monochromatic
#191659 #26228A #342EBB #5752D4 #8783E0

Accessibility & contrast

On white

9.32
#342EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#342EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EBB
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EBB#FFFFFF#000000##FFFFFF
##342EBB1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342ebb;
/* rgb */ color: rgb(52, 46, 187);
/* oklch */ color: oklch(41.8% 0.210 274.3);
Tailwind
colors: {
  custom: {
    50: '#8069d1',
    500: '#342ebb',
    950: '#000000',
  },
}
SCSS
$custom: #342ebb;
$custom-light: #8069d1;
$custom-dark: #000000;
JSON
{
  "hex": "#342ebb",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 242.553,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41781,
    "c": 0.20985,
    "h": 274.3
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#342EBB
secondary
#C6CA7B
accent
#E444DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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