#342D7B#342D7B

#342D7B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.128 H 281.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#342D7B
RGBrgb(52, 45, 123)
HSLhsl(245, 46%, 33%)
HSVhsv(245, 63%, 48%)
CMYKcmyk(57.7%, 63.4%, 0%, 51.8%)
CIE-LABlab(23.79, 26.78, -43.55)
CIE-LCHlch(23.79, 51.12, 301.59°)
OKLaboklab(35.41% 0.0259 -0.125)
OKLCHoklch(35.41% 0.128 281.7)
XYZxyz(5.9286, 4.0365, 19.2018)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D7B #747B2D
analogous
#2D4D7B #342D7B #5B2D7B
triadic
#342D7B #7B342D #2D7B34
tetradic
#342D7B #7B2D4D #747B2D #2D7B5B
square
#342D7B #7B2D4D #747B2D #2D7B5B
split-complementary
#342D7B #7B5B2D #4D7B2D
monochromatic
#0E0C21 #211D4E #342D7B #473DA8 #675EC4

Accessibility & contrast

On white

11.62
#342D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D7B
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D7B#FFFFFF#000000##FFFFFF
##342D7B1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#11404F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342d7b;
/* rgb */ color: rgb(52, 45, 123);
/* oklch */ color: oklch(35.4% 0.128 281.7);
Tailwind
colors: {
  custom: {
    50: '#7366a2',
    500: '#342d7b',
    950: '#000000',
  },
}
SCSS
$custom: #342d7b;
$custom-light: #7366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#342d7b",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 245.385,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35413,
    "c": 0.12767,
    "h": 281.7
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#342D7B
secondary
#A3AB59
accent
#D652CA
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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