#342A94#342A94

#342A94 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.165 H 278.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#342A94
RGBrgb(52, 42, 148)
HSLhsl(246, 56%, 37%)
HSVhsv(246, 72%, 58%)
CMYKcmyk(64.9%, 71.6%, 0%, 42%)
CIE-LABlab(25.33, 37.14, -56.65)
CIE-LCHlch(25.33, 67.74, 303.25°)
OKLaboklab(37.22% 0.0256 -0.1635)
OKLCHoklch(37.22% 0.165 278.9)
XYZxyz(7.5877, 4.5235, 28.4845)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A94 #8A942A
analogous
#2A5594 #342A94 #692A94
triadic
#342A94 #94342A #2A9434
tetradic
#342A94 #942A55 #8A942A #2A9469
square
#342A94 #942A55 #8A942A #2A9469
split-complementary
#342A94 #94692A #55942A
monochromatic
#130F35 #231C64 #342A94 #4538C4 #6F65D3

Accessibility & contrast

On white

11.02
#342A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A94
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A94#FFFFFF#000000##FFFFFF
##342A941.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342a94;
/* rgb */ color: rgb(52, 42, 148);
/* oklch */ color: oklch(37.2% 0.165 278.9);
Tailwind
colors: {
  custom: {
    50: '#7865b4',
    500: '#342a94',
    950: '#000000',
  },
}
SCSS
$custom: #342a94;
$custom-light: #7865b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342a94",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 245.66,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3722,
    "c": 0.16544,
    "h": 278.9
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#342A94
secondary
#B1B960
accent
#DF49D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342A94

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

Preview Lab → · Contrast checker → · Palette generator →

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