#342D7A#342D7A

#342D7A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.126 H 281.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#342D7A
RGBrgb(52, 45, 122)
HSLhsl(245, 46%, 33%)
HSVhsv(245, 63%, 48%)
CMYKcmyk(57.4%, 63.1%, 0%, 52.2%)
CIE-LABlab(23.71, 26.43, -43.05)
CIE-LCHlch(23.71, 50.52, 301.55°)
OKLaboklab(35.33% 0.026 -0.1235)
OKLCHoklch(35.33% 0.126 281.9)
XYZxyz(5.8663, 4.0116, 18.8738)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D7A #737A2D
analogous
#2D4C7A #342D7A #5B2D7A
triadic
#342D7A #7A342D #2D7A34
tetradic
#342D7A #7A2D4C #737A2D #2D7A5B
square
#342D7A #7A2D4C #737A2D #2D7A5B
split-complementary
#342D7A #7A5B2D #4C7A2D
monochromatic
#0E0C21 #211D4D #342D7A #473DA7 #675EC4

Accessibility & contrast

On white

11.65
#342D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D7A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D7A#FFFFFF#000000##FFFFFF
##342D7A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#133F4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342d7a;
/* rgb */ color: rgb(52, 45, 122);
/* oklch */ color: oklch(35.3% 0.126 281.9);
Tailwind
colors: {
  custom: {
    50: '#7366a1',
    500: '#342d7a',
    950: '#000000',
  },
}
SCSS
$custom: #342d7a;
$custom-light: #7366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#342d7a",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 245.455,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.12625,
    "h": 281.9
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#342D7A
secondary
#A3AA59
accent
#D652CA
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #342D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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