#342B9F#342B9F

#342B9F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.178 H 277.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#342B9F
RGBrgb(52, 43, 159)
HSLhsl(245, 57%, 40%)
HSVhsv(245, 73%, 62%)
CMYKcmyk(67.3%, 73%, 0%, 37.6%)
CIE-LABlab(26.62, 40.20, -61.27)
CIE-LCHlch(26.62, 73.28, 303.27°)
OKLaboklab(38.47% 0.0229 -0.1769)
OKLCHoklch(38.47% 0.178 277.4)
XYZxyz(8.5360, 4.9603, 33.3018)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B9F #969F2B
analogous
#2B5C9F #342B9F #6E2B9F
triadic
#342B9F #9F342B #2B9F34
tetradic
#342B9F #9F2B5C #969F2B #2B9F6E
square
#342B9F #9F2B5C #969F2B #2B9F6E
split-complementary
#342B9F #9F6E2B #5C9F2B
monochromatic
#14113F #241E6F #342B9F #483DCA #756DD7

Accessibility & contrast

On white

10.54
#342B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B9F
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B9F#FFFFFF#000000##FFFFFF
##342B9F1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342b9f;
/* rgb */ color: rgb(52, 43, 159);
/* oklch */ color: oklch(38.5% 0.178 277.4);
Tailwind
colors: {
  custom: {
    50: '#7a66bc',
    500: '#342b9f',
    950: '#000000',
  },
}
SCSS
$custom: #342b9f;
$custom-light: #7a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#342b9f",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 244.655,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38467,
    "c": 0.17841,
    "h": 277.4
  },
  "luminance": 0.04961
}

Semantic roles & 50–950 ramp

primary
#342B9F
secondary
#B8BE67
accent
#E147D5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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