#342F93#342F93

#342F93 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.158 H 277.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#342F93
RGBrgb(52, 47, 147)
HSLhsl(243, 52%, 38%)
HSVhsv(243, 68%, 58%)
CMYKcmyk(64.6%, 68%, 0%, 42.4%)
CIE-LABlab(26.36, 33.75, -54.35)
CIE-LCHlch(26.36, 63.97, 301.84°)
OKLaboklab(37.93% 0.0218 -0.1567)
OKLCHoklch(37.93% 0.158 277.9)
XYZxyz(7.6975, 4.8691, 28.1323)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F93 #8E932F
analogous
#2F5C93 #342F93 #662F93
triadic
#342F93 #93342F #2F9334
tetradic
#342F93 #932F5C #8E932F #2F9366
square
#342F93 #932F5C #8E932F #2F9366
split-complementary
#342F93 #93662F #5C932F
monochromatic
#131136 #242065 #342F93 #443EC1 #716CD0

Accessibility & contrast

On white

10.64
#342F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#342F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F93
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F93#FFFFFF#000000##FFFFFF
##342F931.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#003A91
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342f93;
/* rgb */ color: rgb(52, 47, 147);
/* oklch */ color: oklch(37.9% 0.158 277.9);
Tailwind
colors: {
  custom: {
    50: '#7768b4',
    500: '#342f93',
    950: '#000000',
  },
}
SCSS
$custom: #342f93;
$custom-light: #7768b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342f93",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 147
  },
  "hsl": {
    "h": 243,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.15822,
    "h": 277.9
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#342F93
secondary
#B3B766
accent
#DB4DD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F93

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

Preview Lab → · Contrast checker → · Palette generator →

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