#342F94#342F94

#342F94 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.160 H 277.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#342F94
RGBrgb(52, 47, 148)
HSLhsl(243, 52%, 38%)
HSVhsv(243, 68%, 58%)
CMYKcmyk(64.9%, 68.2%, 0%, 42%)
CIE-LABlab(26.45, 34.09, -54.82)
CIE-LCHlch(26.45, 64.55, 301.88°)
OKLaboklab(38.02% 0.0217 -0.1581)
OKLCHoklch(38.02% 0.16 277.8)
XYZxyz(7.7763, 4.9006, 28.5473)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F94 #8F942F
analogous
#2F5C94 #342F94 #662F94
triadic
#342F94 #94342F #2F9434
tetradic
#342F94 #942F5C #8F942F #2F9466
square
#342F94 #942F5C #8F942F #2F9466
split-complementary
#342F94 #94662F #5C942F
monochromatic
#131137 #242066 #342F94 #453EC2 #726DD1

Accessibility & contrast

On white

10.60
#342F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#342F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F94
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F94#FFFFFF#000000##FFFFFF
##342F941.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342f94;
/* rgb */ color: rgb(52, 47, 148);
/* oklch */ color: oklch(38.0% 0.160 277.8);
Tailwind
colors: {
  custom: {
    50: '#7868b4',
    500: '#342f94',
    950: '#000000',
  },
}
SCSS
$custom: #342f94;
$custom-light: #7868b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342f94",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 242.97,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38024,
    "c": 0.15956,
    "h": 277.8
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342F94

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

Preview Lab → · Contrast checker → · Palette generator →

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