#342E85#342E85

#342E85 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.140 H 279.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#342E85
RGBrgb(52, 46, 133)
HSLhsl(244, 49%, 35%)
HSVhsv(244, 65%, 52%)
CMYKcmyk(60.9%, 65.4%, 0%, 47.8%)
CIE-LABlab(24.88, 29.57, -48.08)
CIE-LCHlch(24.88, 56.44, 301.59°)
OKLaboklab(36.47% 0.0242 -0.1383)
OKLCHoklch(36.47% 0.14 279.9)
XYZxyz(6.6255, 4.3770, 22.6815)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E85 #7F852E
analogous
#2E5385 #342E85 #5F2E85
triadic
#342E85 #85342E #2E8534
tetradic
#342E85 #852E53 #7F852E #2E855F
square
#342E85 #852E53 #7F852E #2E855F
split-complementary
#342E85 #855F2E #53852E
monochromatic
#100F2A #221E58 #342E85 #463EB2 #6B64C9

Accessibility & contrast

On white

11.20
#342E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#342E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E85
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E85#FFFFFF#000000##FFFFFF
##342E851.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342e85;
/* rgb */ color: rgb(52, 46, 133);
/* oklch */ color: oklch(36.5% 0.140 279.9);
Tailwind
colors: {
  custom: {
    50: '#7567a9',
    500: '#342e85',
    950: '#000000',
  },
}
SCSS
$custom: #342e85;
$custom-light: #7567a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342e85",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 244.138,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36472,
    "c": 0.1404,
    "h": 279.9
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#342E85
secondary
#AAB05F
accent
#D850CF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342E85

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

Preview Lab → · Contrast checker → · Palette generator →

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