#342F97#342F97

#342F97 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.164 H 277.5°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#342F97
RGBrgb(52, 47, 151)
HSLhsl(243, 53%, 39%)
HSVhsv(243, 69%, 59%)
CMYKcmyk(65.6%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.73, 35.11, -56.21)
CIE-LCHlch(26.73, 66.27, 301.99°)
OKLaboklab(38.31% 0.0213 -0.1621)
OKLCHoklch(38.31% 0.164 277.5)
XYZxyz(8.0168, 4.9968, 29.8142)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F97 #92972F
analogous
#2F5E97 #342F97 #682F97
triadic
#342F97 #97342F #2F9734
tetradic
#342F97 #972F5E #92972F #2F9768
square
#342F97 #972F5E #92972F #2F9768
split-complementary
#342F97 #97682F #5E972F
monochromatic
#14123A #242068 #342F97 #4640C3 #736ED2

Accessibility & contrast

On white

10.50
#342F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#342F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F97
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F97#FFFFFF#000000##FFFFFF
##342F971.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342f97;
/* rgb */ color: rgb(52, 47, 151);
/* oklch */ color: oklch(38.3% 0.164 277.5);
Tailwind
colors: {
  custom: {
    50: '#7868b7',
    500: '#342f97',
    950: '#000000',
  },
}
SCSS
$custom: #342f97;
$custom-light: #7868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342f97",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 242.885,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38308,
    "c": 0.16354,
    "h": 277.5
  },
  "luminance": 0.04997
}

Semantic roles & 50–950 ramp

primary
#342F97
secondary
#B5B968
accent
#DC4CD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F97

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

Preview Lab → · Contrast checker → · Palette generator →

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