#342F85#342F85

#342F85 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.139 H 279.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#342F85
RGBrgb(52, 47, 133)
HSLhsl(243, 48%, 35%)
HSVhsv(243, 65%, 52%)
CMYKcmyk(60.9%, 64.7%, 0%, 47.8%)
CIE-LABlab(25.13, 28.92, -47.68)
CIE-LCHlch(25.13, 55.76, 301.24°)
OKLaboklab(36.65% 0.0232 -0.1371)
OKLCHoklch(36.65% 0.139 279.6)
XYZxyz(6.6650, 4.4561, 22.6946)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F85 #80852F
analogous
#2F5585 #342F85 #5F2F85
triadic
#342F85 #85342F #2F8534
tetradic
#342F85 #852F55 #80852F #2F855F
square
#342F85 #852F55 #80852F #2F855F
split-complementary
#342F85 #855F2F #55852F
monochromatic
#110F2B #221F58 #342F85 #463FB2 #6B66C9

Accessibility & contrast

On white

11.10
#342F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F85
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F85#FFFFFF#000000##FFFFFF
##342F851.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342f85;
/* rgb */ color: rgb(52, 47, 133);
/* oklch */ color: oklch(36.7% 0.139 279.6);
Tailwind
colors: {
  custom: {
    50: '#7568a9',
    500: '#342f85',
    950: '#000000',
  },
}
SCSS
$custom: #342f85;
$custom-light: #7568a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342f85",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 243.488,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.13909,
    "h": 279.6
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#342F85
secondary
#ABB060
accent
#D750D0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F85

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

Preview Lab → · Contrast checker → · Palette generator →

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