#342C93#342C93

#342C93 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.162 H 278.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#342C93
RGBrgb(52, 44, 147)
HSLhsl(245, 54%, 37%)
HSVhsv(245, 70%, 58%)
CMYKcmyk(64.6%, 70.1%, 0%, 42.4%)
CIE-LABlab(25.68, 35.60, -55.47)
CIE-LCHlch(25.68, 65.91, 302.69°)
OKLaboklab(37.44% 0.0242 -0.16)
OKLCHoklch(37.44% 0.162 278.6)
XYZxyz(7.5816, 4.6374, 28.0937)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C93 #8B932C
analogous
#2C5893 #342C93 #672C93
triadic
#342C93 #93342C #2C9334
tetradic
#342C93 #932C58 #8B932C #2C9367
square
#342C93 #932C58 #8B932C #2C9367
split-complementary
#342C93 #93672C #58932C
monochromatic
#131035 #231E64 #342C93 #453AC2 #7068D2

Accessibility & contrast

On white

10.89
#342C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#342C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C93
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C93#FFFFFF#000000##FFFFFF
##342C931.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#003991
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342c93;
/* rgb */ color: rgb(52, 44, 147);
/* oklch */ color: oklch(37.4% 0.162 278.6);
Tailwind
colors: {
  custom: {
    50: '#7866b4',
    500: '#342c93',
    950: '#000000',
  },
}
SCSS
$custom: #342c93;
$custom-light: #7866b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342c93",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 147
  },
  "hsl": {
    "h": 244.66,
    "s": 53.927,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37437,
    "c": 0.16182,
    "h": 278.6
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#342C93
secondary
#B2B863
accent
#DD4AD2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C93

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

Preview Lab → · Contrast checker → · Palette generator →

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