#342F8E#342F8E

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

Color values

HEX#342F8E
RGBrgb(52, 47, 142)
HSLhsl(243, 50%, 37%)
HSVhsv(243, 67%, 56%)
CMYKcmyk(63.4%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.91, 32.03, -52.00)
CIE-LCHlch(25.91, 61.07, 301.63°)
OKLaboklab(37.46% 0.0224 -0.1498)
OKLCHoklch(37.46% 0.151 278.5)
XYZxyz(7.3136, 4.7155, 26.1107)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F8E #898E2F
analogous
#2F5A8E #342F8E #642F8E
triadic
#342F8E #8E342F #2F8E34
tetradic
#342F8E #8E2F5A #898E2F #2F8E64
square
#342F8E #8E2F5A #898E2F #2F8E64
split-complementary
#342F8E #8E642F #5A8E2F
monochromatic
#121132 #232060 #342F8E #453EBC #6F6ACE

Accessibility & contrast

On white

10.81
#342F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#342F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F8E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F8E#FFFFFF#000000##FFFFFF
##342F8E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342f8e;
/* rgb */ color: rgb(52, 47, 142);
/* oklch */ color: oklch(37.5% 0.151 278.5);
Tailwind
colors: {
  custom: {
    50: '#7668b0',
    500: '#342f8e',
    950: '#000000',
  },
}
SCSS
$custom: #342f8e;
$custom-light: #7668b0;
$custom-dark: #000000;
JSON
{
  "hex": "#342f8e",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 243.158,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37465,
    "c": 0.15149,
    "h": 278.5
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#342F8E
secondary
#B0B564
accent
#DA4ED2
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #342F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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