#342F90#342F90

#342F90 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.154 H 278.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#342F90
RGBrgb(52, 47, 144)
HSLhsl(243, 51%, 37%)
HSVhsv(243, 67%, 56%)
CMYKcmyk(63.9%, 67.4%, 0%, 43.5%)
CIE-LABlab(26.09, 32.72, -52.94)
CIE-LCHlch(26.09, 62.24, 301.71°)
OKLaboklab(37.65% 0.0222 -0.1526)
OKLCHoklch(37.65% 0.154 278.3)
XYZxyz(7.4651, 4.7761, 26.9086)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F90 #8B902F
analogous
#2F5A90 #342F90 #652F90
triadic
#342F90 #90342F #2F9034
tetradic
#342F90 #902F5A #8B902F #2F9065
square
#342F90 #902F5A #8B902F #2F9065
split-complementary
#342F90 #90652F #5A902F
monochromatic
#131134 #232062 #342F90 #453EBE #706BCF

Accessibility & contrast

On white

10.74
#342F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#342F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F90
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F90#FFFFFF#000000##FFFFFF
##342F901.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342f90;
/* rgb */ color: rgb(52, 47, 144);
/* oklch */ color: oklch(37.6% 0.154 278.3);
Tailwind
colors: {
  custom: {
    50: '#7768b1',
    500: '#342f90',
    950: '#000000',
  },
}
SCSS
$custom: #342f90;
$custom-light: #7768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342f90",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 243.093,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3765,
    "c": 0.1542,
    "h": 278.3
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342F90

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

Preview Lab → · Contrast checker → · Palette generator →

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