#342995#342995

#342995 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.168 H 279.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#342995
RGBrgb(52, 41, 149)
HSLhsl(246, 57%, 37%)
HSVhsv(246, 72%, 58%)
CMYKcmyk(65.1%, 72.5%, 0%, 41.6%)
CIE-LABlab(25.21, 38.06, -57.46)
CIE-LCHlch(25.21, 68.92, 303.52°)
OKLaboklab(37.17% 0.0262 -0.1658)
OKLCHoklch(37.17% 0.168 279)
XYZxyz(7.6322, 4.4853, 28.8915)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342995 #8A9529
analogous
#295495 #342995 #6A2995
triadic
#342995 #953429 #299534
tetradic
#342995 #952954 #8A9529 #29956A
square
#342995 #952954 #8A9529 #29956A
split-complementary
#342995 #956A29 #549529
monochromatic
#130F35 #231C65 #342995 #4536C5 #6F64D4

Accessibility & contrast

On white

11.07
#342995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342995
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342995#FFFFFF#000000##FFFFFF
##3429951.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342995;
/* rgb */ color: rgb(52, 41, 149);
/* oklch */ color: oklch(37.2% 0.168 279.0);
Tailwind
colors: {
  custom: {
    50: '#7864b5',
    500: '#342995',
    950: '#000000',
  },
}
SCSS
$custom: #342995;
$custom-light: #7864b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342995",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 246.111,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37166,
    "c": 0.16786,
    "h": 279
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#342995
secondary
#B1BA60
accent
#E048D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342995

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

Preview Lab → · Contrast checker → · Palette generator →

#342995 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva