#342C94#342C94

#342C94 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.163 H 278.5°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#342C94
RGBrgb(52, 44, 148)
HSLhsl(245, 54%, 38%)
HSVhsv(245, 70%, 58%)
CMYKcmyk(64.9%, 70.3%, 0%, 42%)
CIE-LABlab(25.77, 35.93, -55.93)
CIE-LCHlch(25.77, 66.48, 302.72°)
OKLaboklab(37.53% 0.0241 -0.1613)
OKLCHoklch(37.53% 0.163 278.5)
XYZxyz(7.6604, 4.6689, 28.5087)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C94 #8C942C
analogous
#2C5894 #342C94 #682C94
triadic
#342C94 #94342C #2C9434
tetradic
#342C94 #942C58 #8C942C #2C9468
square
#342C94 #942C58 #8C942C #2C9468
split-complementary
#342C94 #94682C #58942C
monochromatic
#131036 #231E65 #342C94 #453AC3 #7068D2

Accessibility & contrast

On white

10.86
#342C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C94
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C94#FFFFFF#000000##FFFFFF
##342C941.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003992
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342c94;
/* rgb */ color: rgb(52, 44, 148);
/* oklch */ color: oklch(37.5% 0.163 278.5);
Tailwind
colors: {
  custom: {
    50: '#7866b4',
    500: '#342c94',
    950: '#000000',
  },
}
SCSS
$custom: #342c94;
$custom-light: #7866b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342c94",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 244.615,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37534,
    "c": 0.16313,
    "h": 278.5
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#342C94
secondary
#B2B963
accent
#DE4AD2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C94

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

Preview Lab → · Contrast checker → · Palette generator →

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