#342F8F#342F8F

#342F8F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.153 H 278.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#342F8F
RGBrgb(52, 47, 143)
HSLhsl(243, 51%, 37%)
HSVhsv(243, 67%, 56%)
CMYKcmyk(63.6%, 67.1%, 0%, 43.9%)
CIE-LABlab(26.00, 32.37, -52.47)
CIE-LCHlch(26.00, 61.65, 301.67°)
OKLaboklab(37.56% 0.0223 -0.1512)
OKLCHoklch(37.56% 0.153 278.4)
XYZxyz(7.3890, 4.7457, 26.5079)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F8F #8A8F2F
analogous
#2F5A8F #342F8F #642F8F
triadic
#342F8F #8F342F #2F8F34
tetradic
#342F8F #8F2F5A #8A8F2F #2F8F64
square
#342F8F #8F2F5A #8A8F2F #2F8F64
split-complementary
#342F8F #8F642F #5A8F2F
monochromatic
#131133 #232061 #342F8F #453EBD #6F6ACE

Accessibility & contrast

On white

10.77
#342F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#342F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F8F
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F8F#FFFFFF#000000##FFFFFF
##342F8F1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342f8f;
/* rgb */ color: rgb(52, 47, 143);
/* oklch */ color: oklch(37.6% 0.153 278.4);
Tailwind
colors: {
  custom: {
    50: '#7768b1',
    500: '#342f8f',
    950: '#000000',
  },
}
SCSS
$custom: #342f8f;
$custom-light: #7768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342f8f",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 243.125,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37557,
    "c": 0.15285,
    "h": 278.4
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#342F8F
secondary
#B1B565
accent
#DA4ED3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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