#342C90#342C90

#342C90 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.158 H 279.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#342C90
RGBrgb(52, 44, 144)
HSLhsl(245, 53%, 37%)
HSVhsv(245, 69%, 56%)
CMYKcmyk(63.9%, 69.4%, 0%, 43.5%)
CIE-LABlab(25.40, 34.58, -54.08)
CIE-LCHlch(25.40, 64.19, 302.60°)
OKLaboklab(37.15% 0.0247 -0.1559)
OKLCHoklch(37.15% 0.158 279)
XYZxyz(7.3493, 4.5445, 26.8700)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C90 #88902C
analogous
#2C5690 #342C90 #662C90
triadic
#342C90 #90342C #2C9034
tetradic
#342C90 #902C56 #88902C #2C9066
square
#342C90 #902C56 #88902C #2C9066
split-complementary
#342C90 #90662C #56902C
monochromatic
#120F32 #231E61 #342C90 #453ABF #6F66D0

Accessibility & contrast

On white

11.00
#342C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C90
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C90#FFFFFF#000000##FFFFFF
##342C901.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00388E
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342c90;
/* rgb */ color: rgb(52, 44, 144);
/* oklch */ color: oklch(37.1% 0.158 279.0);
Tailwind
colors: {
  custom: {
    50: '#7766b1',
    500: '#342c90',
    950: '#000000',
  },
}
SCSS
$custom: #342c90;
$custom-light: #7766b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342c90",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 244.8,
    "s": 53.191,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3715,
    "c": 0.15785,
    "h": 279
  },
  "luminance": 0.04545
}

Semantic roles & 50–950 ramp

primary
#342C90
secondary
#B0B761
accent
#DD4BD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C90

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

Preview Lab → · Contrast checker → · Palette generator →

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