#342695#342695

#342695 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.171 H 279.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#342695
RGBrgb(52, 38, 149)
HSLhsl(248, 59%, 37%)
HSVhsv(248, 74%, 58%)
CMYKcmyk(65.1%, 74.5%, 0%, 41.6%)
CIE-LABlab(24.59, 39.79, -58.48)
CIE-LCHlch(24.59, 70.73, 304.23°)
OKLaboklab(36.72% 0.0283 -0.1688)
OKLCHoklch(36.72% 0.171 279.5)
XYZxyz(7.5324, 4.2856, 28.8582)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342695 #879526
analogous
#264F95 #342695 #6C2695
triadic
#342695 #953426 #269534
tetradic
#342695 #95264F #879526 #26956C
square
#342695 #95264F #879526 #26956C
split-complementary
#342695 #956C26 #4F9526
monochromatic
#120D33 #231A64 #342695 #4532C6 #6E5FD6

Accessibility & contrast

On white

11.31
#342695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342695
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342695#FFFFFF#000000##FFFFFF
##3426951.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342695;
/* rgb */ color: rgb(52, 38, 149);
/* oklch */ color: oklch(36.7% 0.171 279.5);
Tailwind
colors: {
  custom: {
    50: '#7962b5',
    500: '#342695',
    950: '#000000',
  },
}
SCSS
$custom: #342695;
$custom-light: #7962b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342695",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 247.568,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36724,
    "c": 0.17112,
    "h": 279.5
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#342695
secondary
#AFBB5B
accent
#E345CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342695

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

Preview Lab → · Contrast checker → · Palette generator →

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