#342F9D#342F9D

#342F9D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.171 H 276.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#342F9D
RGBrgb(52, 47, 157)
HSLhsl(243, 54%, 40%)
HSVhsv(243, 70%, 62%)
CMYKcmyk(66.9%, 70.1%, 0%, 38.4%)
CIE-LABlab(27.29, 37.15, -58.95)
CIE-LCHlch(27.29, 69.68, 302.22°)
OKLaboklab(38.89% 0.0205 -0.1702)
OKLCHoklch(38.89% 0.171 276.9)
XYZxyz(8.5165, 5.1967, 32.4460)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F9D #989D2F
analogous
#2F619D #342F9D #6B2F9D
triadic
#342F9D #9D342F #2F9D34
tetradic
#342F9D #9D2F61 #989D2F #2F9D6B
square
#342F9D #9D2F61 #989D2F #2F9D6B
split-complementary
#342F9D #9D6B2F #619D2F
monochromatic
#15133F #24216E #342F9D #4943C7 #7672D5

Accessibility & contrast

On white

10.30
#342F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F9D
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F9D#FFFFFF#000000##FFFFFF
##342F9D1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342f9d;
/* rgb */ color: rgb(52, 47, 157);
/* oklch */ color: oklch(38.9% 0.171 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a68bb',
    500: '#342f9d',
    950: '#000000',
  },
}
SCSS
$custom: #342f9d;
$custom-light: #7a68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#342f9d",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 242.727,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.38885,
    "c": 0.17142,
    "h": 276.9
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#342F9D
secondary
#B9BC6B
accent
#DD4BD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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