#342691#342691

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

Color values

HEX#342691
RGBrgb(52, 38, 145)
HSLhsl(248, 58%, 36%)
HSVhsv(248, 74%, 57%)
CMYKcmyk(64.1%, 73.8%, 0%, 43.1%)
CIE-LABlab(24.19, 38.49, -56.67)
CIE-LCHlch(24.19, 68.51, 304.19°)
OKLaboklab(36.32% 0.0292 -0.1635)
OKLCHoklch(36.32% 0.166 280.1)
XYZxyz(7.2185, 4.1601, 27.2052)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342691 #839126
analogous
#264E91 #342691 #692691
triadic
#342691 #913426 #269134
tetradic
#342691 #91264E #839126 #269169
square
#342691 #91264E #839126 #269169
split-complementary
#342691 #916926 #4E9126
monochromatic
#110D30 #231961 #342691 #4533C1 #6D5DD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342691#FFFFFF#000000##FFFFFF
##3426911.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)
#003D94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342691;
/* rgb */ color: rgb(52, 38, 145);
/* oklch */ color: oklch(36.3% 0.166 280.1);
Tailwind
colors: {
  custom: {
    50: '#7862b2',
    500: '#342691',
    950: '#000000',
  },
}
SCSS
$custom: #342691;
$custom-light: #7862b2;
$custom-dark: #000000;
JSON
{
  "hex": "#342691",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 247.85,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36319,
    "c": 0.16606,
    "h": 280.1
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#342691
secondary
#ADBA59
accent
#E246CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342691

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

Preview Lab → · Contrast checker → · Palette generator →

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