#342F92#342F92

#342F92 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.157 H 278.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#342F92
RGBrgb(52, 47, 146)
HSLhsl(243, 51%, 38%)
HSVhsv(243, 68%, 57%)
CMYKcmyk(64.4%, 67.8%, 0%, 42.7%)
CIE-LABlab(26.27, 33.40, -53.88)
CIE-LCHlch(26.27, 63.40, 301.79°)
OKLaboklab(37.84% 0.022 -0.1553)
OKLCHoklch(37.84% 0.157 278)
XYZxyz(7.6193, 4.8378, 27.7208)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F92 #8D922F
analogous
#2F5C92 #342F92 #652F92
triadic
#342F92 #92342F #2F9234
tetradic
#342F92 #922F5C #8D922F #2F9265
square
#342F92 #922F5C #8D922F #2F9265
split-complementary
#342F92 #92652F #5C922F
monochromatic
#131135 #242064 #342F92 #443EC0 #716CD0

Accessibility & contrast

On white

10.67
#342F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#342F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F92
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F92#FFFFFF#000000##FFFFFF
##342F921.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003A90
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342f92;
/* rgb */ color: rgb(52, 47, 146);
/* oklch */ color: oklch(37.8% 0.157 278.0);
Tailwind
colors: {
  custom: {
    50: '#7768b3',
    500: '#342f92',
    950: '#000000',
  },
}
SCSS
$custom: #342f92;
$custom-light: #7768b3;
$custom-dark: #000000;
JSON
{
  "hex": "#342f92",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 243.03,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37836,
    "c": 0.15688,
    "h": 278
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#342F92
secondary
#B3B766
accent
#DB4DD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F92

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

Preview Lab → · Contrast checker → · Palette generator →

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