#342C92#342C92

#342C92 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.161 H 278.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#342C92
RGBrgb(52, 44, 146)
HSLhsl(245, 54%, 37%)
HSVhsv(245, 70%, 57%)
CMYKcmyk(64.4%, 69.9%, 0%, 42.7%)
CIE-LABlab(25.58, 35.26, -55.01)
CIE-LCHlch(25.58, 65.34, 302.66°)
OKLaboklab(37.34% 0.0244 -0.1586)
OKLCHoklch(37.34% 0.161 278.7)
XYZxyz(7.5035, 4.6062, 27.6822)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C92 #8A922C
analogous
#2C5792 #342C92 #672C92
triadic
#342C92 #92342C #2C9234
tetradic
#342C92 #922C57 #8A922C #2C9267
square
#342C92 #922C57 #8A922C #2C9267
split-complementary
#342C92 #92672C #57922C
monochromatic
#131034 #231E63 #342C92 #453AC1 #6F67D1

Accessibility & contrast

On white

10.93
#342C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#342C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C92
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C92#FFFFFF#000000##FFFFFF
##342C921.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003890
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342c92;
/* rgb */ color: rgb(52, 44, 146);
/* oklch */ color: oklch(37.3% 0.161 278.7);
Tailwind
colors: {
  custom: {
    50: '#7766b3',
    500: '#342c92',
    950: '#000000',
  },
}
SCSS
$custom: #342c92;
$custom-light: #7766b3;
$custom-dark: #000000;
JSON
{
  "hex": "#342c92",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 244.706,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37341,
    "c": 0.1605,
    "h": 278.7
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#342C92
secondary
#B1B862
accent
#DD4BD2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C92

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

Preview Lab → · Contrast checker → · Palette generator →

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