#342B90#342B90

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

Color values

HEX#342B90
RGBrgb(52, 43, 144)
HSLhsl(245, 54%, 37%)
HSVhsv(245, 70%, 56%)
CMYKcmyk(63.9%, 70.1%, 0%, 43.5%)
CIE-LABlab(25.17, 35.20, -54.45)
CIE-LCHlch(25.17, 64.83, 302.88°)
OKLaboklab(36.99% 0.0255 -0.157)
OKLCHoklch(36.99% 0.159 279.2)
XYZxyz(7.3125, 4.4709, 26.8578)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B90 #87902B
analogous
#2B5490 #342B90 #672B90
triadic
#342B90 #90342B #2B9034
tetradic
#342B90 #902B54 #87902B #2B9067
square
#342B90 #902B54 #87902B #2B9067
split-complementary
#342B90 #90672B #54902B
monochromatic
#120F32 #231D61 #342B90 #4539BF #6E65D1

Accessibility & contrast

On white

11.09
#342B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B90
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B90#FFFFFF#000000##FFFFFF
##342B901.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.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: #342b90;
/* rgb */ color: rgb(52, 43, 144);
/* oklch */ color: oklch(37.0% 0.159 279.2);
Tailwind
colors: {
  custom: {
    50: '#7765b1',
    500: '#342b90',
    950: '#000000',
  },
}
SCSS
$custom: #342b90;
$custom-light: #7765b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342b90",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 144
  },
  "hsl": {
    "h": 245.347,
    "s": 54.011,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36988,
    "c": 0.15905,
    "h": 279.2
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#342B90
secondary
#AFB760
accent
#DD4AD0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342B90

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

Preview Lab → · Contrast checker → · Palette generator →

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