#342B87#342B87

#342B87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.147 H 280.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#342B87
RGBrgb(52, 43, 135)
HSLhsl(246, 52%, 35%)
HSVhsv(246, 68%, 53%)
CMYKcmyk(61.5%, 68.1%, 0%, 47.1%)
CIE-LABlab(24.34, 32.16, -50.20)
CIE-LCHlch(24.34, 59.62, 302.64°)
OKLaboklab(36.14% 0.0268 -0.1446)
OKLCHoklch(36.14% 0.147 280.5)
XYZxyz(6.6518, 4.2066, 23.3784)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B87 #7E872B
analogous
#2B5087 #342B87 #622B87
triadic
#342B87 #87342B #2B8734
tetradic
#342B87 #872B50 #7E872B #2B8762
square
#342B87 #872B50 #7E872B #2B8762
split-complementary
#342B87 #87622B #50872B
monochromatic
#100D2A #221C59 #342B87 #463AB5 #6B60CC

Accessibility & contrast

On white

11.40
#342B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B87
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B87#FFFFFF#000000##FFFFFF
##342B871.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342b87;
/* rgb */ color: rgb(52, 43, 135);
/* oklch */ color: oklch(36.1% 0.147 280.5);
Tailwind
colors: {
  custom: {
    50: '#7565ab',
    500: '#342b87',
    950: '#000000',
  },
}
SCSS
$custom: #342b87;
$custom-light: #7565ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342b87",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 245.87,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36136,
    "c": 0.14702,
    "h": 280.5
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#342B87
secondary
#AAB25B
accent
#DB4DCD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342B87

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

Preview Lab → · Contrast checker → · Palette generator →

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