#342495#342495

#342495 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.173 H 279.9°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#342495
RGBrgb(52, 36, 149)
HSLhsl(248, 61%, 36%)
HSVhsv(248, 76%, 58%)
CMYKcmyk(65.1%, 75.8%, 0%, 41.6%)
CIE-LABlab(24.20, 40.91, -59.13)
CIE-LCHlch(24.20, 71.90, 304.68°)
OKLaboklab(36.44% 0.0296 -0.1707)
OKLCHoklch(36.44% 0.173 279.9)
XYZxyz(7.4701, 4.1612, 28.8375)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342495 #859524
analogous
#244D95 #342495 #6D2495
triadic
#342495 #953424 #249534
tetradic
#342495 #95244D #859524 #24956D
square
#342495 #95244D #859524 #24956D
split-complementary
#342495 #956D24 #4D9524
monochromatic
#120C32 #231864 #342495 #4530C6 #6D5CD8

Accessibility & contrast

On white

11.46
#342495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342495
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342495#FFFFFF#000000##FFFFFF
##3424951.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342495;
/* rgb */ color: rgb(52, 36, 149);
/* oklch */ color: oklch(36.4% 0.173 279.9);
Tailwind
colors: {
  custom: {
    50: '#7961b5',
    500: '#342495',
    950: '#000000',
  },
}
SCSS
$custom: #342495;
$custom-light: #7961b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342495",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 248.496,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.17322,
    "h": 279.9
  },
  "luminance": 0.04162
}

Semantic roles & 50–950 ramp

primary
#342495
secondary
#AEBC59
accent
#E444CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342495

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

Preview Lab → · Contrast checker → · Palette generator →

#342495 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva