#342B91#342B91

#342B91 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.160 H 279.1°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#342B91
RGBrgb(52, 43, 145)
HSLhsl(245, 54%, 37%)
HSVhsv(245, 70%, 57%)
CMYKcmyk(64.1%, 70.3%, 0%, 43.1%)
CIE-LABlab(25.26, 35.53, -54.91)
CIE-LCHlch(25.26, 65.40, 302.91°)
OKLaboklab(37.08% 0.0253 -0.1583)
OKLCHoklch(37.08% 0.16 279.1)
XYZxyz(7.3893, 4.5016, 27.2621)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B91 #88912B
analogous
#2B5591 #342B91 #672B91
triadic
#342B91 #91342B #2B9134
tetradic
#342B91 #912B55 #88912B #2B9167
square
#342B91 #912B55 #88912B #2B9167
split-complementary
#342B91 #91672B #55912B
monochromatic
#120F33 #231D62 #342B91 #4539C0 #6F65D1

Accessibility & contrast

On white

11.05
#342B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B91
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B91#FFFFFF#000000##FFFFFF
##342B911.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00388F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342b91;
/* rgb */ color: rgb(52, 43, 145);
/* oklch */ color: oklch(37.1% 0.160 279.1);
Tailwind
colors: {
  custom: {
    50: '#7765b2',
    500: '#342b91',
    950: '#000000',
  },
}
SCSS
$custom: #342b91;
$custom-light: #7765b2;
$custom-dark: #000000;
JSON
{
  "hex": "#342b91",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 145
  },
  "hsl": {
    "h": 245.294,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37084,
    "c": 0.16036,
    "h": 279.1
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342B91

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

Preview Lab → · Contrast checker → · Palette generator →

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