#342A92#342A92

#342A92 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.163 H 279.2°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#342A92
RGBrgb(52, 42, 146)
HSLhsl(246, 55%, 37%)
HSVhsv(246, 71%, 57%)
CMYKcmyk(64.4%, 71.2%, 0%, 42.7%)
CIE-LABlab(25.14, 36.47, -55.73)
CIE-LCHlch(25.14, 66.61, 303.20°)
OKLaboklab(37.02% 0.026 -0.1608)
OKLCHoklch(37.02% 0.163 279.2)
XYZxyz(7.4308, 4.4607, 27.6580)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A92 #88922A
analogous
#2A5492 #342A92 #682A92
triadic
#342A92 #92342A #2A9234
tetradic
#342A92 #922A54 #88922A #2A9268
square
#342A92 #922A54 #88922A #2A9268
split-complementary
#342A92 #92682A #54922A
monochromatic
#120F33 #231C62 #342A92 #4538C2 #6F64D2

Accessibility & contrast

On white

11.10
#342A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A92
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A92#FFFFFF#000000##FFFFFF
##342A921.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#003790
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342a92;
/* rgb */ color: rgb(52, 42, 146);
/* oklch */ color: oklch(37.0% 0.163 279.2);
Tailwind
colors: {
  custom: {
    50: '#7865b3',
    500: '#342a92',
    950: '#000000',
  },
}
SCSS
$custom: #342a92;
$custom-light: #7865b3;
$custom-dark: #000000;
JSON
{
  "hex": "#342a92",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 146
  },
  "hsl": {
    "h": 245.769,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37024,
    "c": 0.16284,
    "h": 279.2
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#342A92
secondary
#B0B85F
accent
#DF49D0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342A92

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

Preview Lab → · Contrast checker → · Palette generator →

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