#342E7A#342E7A

#342E7A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.125 H 281.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#342E7A
RGBrgb(52, 46, 122)
HSLhsl(245, 45%, 33%)
HSVhsv(245, 62%, 48%)
CMYKcmyk(57.4%, 62.3%, 0%, 52.2%)
CIE-LABlab(23.96, 25.77, -42.64)
CIE-LCHlch(23.96, 49.82, 301.15°)
OKLaboklab(35.51% 0.0249 -0.1223)
OKLCHoklch(35.51% 0.125 281.5)
XYZxyz(5.9049, 4.0888, 18.8866)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E7A #747A2E
analogous
#2E4E7A #342E7A #5A2E7A
triadic
#342E7A #7A342E #2E7A34
tetradic
#342E7A #7A2E4E #747A2E #2E7A5A
square
#342E7A #7A2E4E #747A2E #2E7A5A
split-complementary
#342E7A #7A5A2E #4E7A2E
monochromatic
#0E0C21 #211D4E #342E7A #473FA6 #6760C3

Accessibility & contrast

On white

11.55
#342E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E7A
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E7A#FFFFFF#000000##FFFFFF
##342E7A1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#12404F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342e7a;
/* rgb */ color: rgb(52, 46, 122);
/* oklch */ color: oklch(35.5% 0.125 281.5);
Tailwind
colors: {
  custom: {
    50: '#7367a1',
    500: '#342e7a',
    950: '#000000',
  },
}
SCSS
$custom: #342e7a;
$custom-light: #7367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#342e7a",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 244.737,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35513,
    "c": 0.12483,
    "h": 281.5
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#342E7A
secondary
#A3AA5A
accent
#D553CB
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #342E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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