#342B92#342B92

#342B92 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.162 H 279.0°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#342B92
RGBrgb(52, 43, 146)
HSLhsl(245, 54%, 37%)
HSVhsv(245, 71%, 57%)
CMYKcmyk(64.4%, 70.5%, 0%, 42.7%)
CIE-LABlab(25.36, 35.87, -55.37)
CIE-LCHlch(25.36, 65.97, 302.93°)
OKLaboklab(37.18% 0.0252 -0.1597)
OKLCHoklch(37.18% 0.162 279)
XYZxyz(7.4667, 4.5326, 27.6700)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B92 #89922B
analogous
#2B5592 #342B92 #682B92
triadic
#342B92 #92342B #2B9234
tetradic
#342B92 #922B55 #89922B #2B9268
square
#342B92 #922B55 #89922B #2B9268
split-complementary
#342B92 #92682B #55922B
monochromatic
#120F33 #231D63 #342B92 #4539C1 #6F66D2

Accessibility & contrast

On white

11.01
#342B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B92
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B92#FFFFFF#000000##FFFFFF
##342B921.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342b92;
/* rgb */ color: rgb(52, 43, 146);
/* oklch */ color: oklch(37.2% 0.162 279.0);
Tailwind
colors: {
  custom: {
    50: '#7865b3',
    500: '#342b92',
    950: '#000000',
  },
}
SCSS
$custom: #342b92;
$custom-light: #7865b3;
$custom-dark: #000000;
JSON
{
  "hex": "#342b92",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 146
  },
  "hsl": {
    "h": 245.243,
    "s": 54.497,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.16168,
    "h": 279
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#342B92
secondary
#B0B861
accent
#DE4AD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342B92

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

Preview Lab → · Contrast checker → · Palette generator →

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