#342F9C#342F9C

#342F9C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.170 H 277.0°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#342F9C
RGBrgb(52, 47, 156)
HSLhsl(243, 54%, 40%)
HSVhsv(243, 70%, 61%)
CMYKcmyk(66.7%, 69.9%, 0%, 38.8%)
CIE-LABlab(27.19, 36.82, -58.50)
CIE-LCHlch(27.19, 69.12, 302.18°)
OKLaboklab(38.79% 0.0206 -0.1689)
OKLCHoklch(38.79% 0.17 277)
XYZxyz(8.4315, 5.1627, 31.9982)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F9C #979C2F
analogous
#2F619C #342F9C #6A2F9C
triadic
#342F9C #9C342F #2F9C34
tetradic
#342F9C #9C2F61 #979C2F #2F9C6A
square
#342F9C #9C2F61 #979C2F #2F9C6A
split-complementary
#342F9C #9C6A2F #619C2F
monochromatic
#15133E #24216D #342F9C #4842C6 #7671D4

Accessibility & contrast

On white

10.33
#342F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#342F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F9C
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F9C#FFFFFF#000000##FFFFFF
##342F9C1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342f9c;
/* rgb */ color: rgb(52, 47, 156);
/* oklch */ color: oklch(38.8% 0.170 277.0);
Tailwind
colors: {
  custom: {
    50: '#7968ba',
    500: '#342f9c',
    950: '#000000',
  },
}
SCSS
$custom: #342f9c;
$custom-light: #7968ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342f9c",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 242.752,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38788,
    "c": 0.17011,
    "h": 277
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#342F9C
secondary
#B8BC6B
accent
#DD4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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