#342597#342597

#342597 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.175 H 279.4°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#342597
RGBrgb(52, 37, 151)
HSLhsl(248, 61%, 37%)
HSVhsv(248, 75%, 59%)
CMYKcmyk(65.6%, 75.5%, 0%, 40.8%)
CIE-LABlab(24.60, 41.00, -59.70)
CIE-LCHlch(24.60, 72.42, 304.48°)
OKLaboklab(36.79% 0.0285 -0.1723)
OKLCHoklch(36.79% 0.175 279.4)
XYZxyz(7.6619, 4.2870, 29.6959)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342597 #889725
analogous
#254F97 #342597 #6D2597
triadic
#342597 #973425 #259734
tetradic
#342597 #97254F #889725 #25976D
square
#342597 #97254F #889725 #25976D
split-complementary
#342597 #976D25 #4F9725
monochromatic
#120D35 #231966 #342597 #4531C8 #6F5FD8

Accessibility & contrast

On white

11.30
#342597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342597
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342597#FFFFFF#000000##FFFFFF
##3425971.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342597;
/* rgb */ color: rgb(52, 37, 151);
/* oklch */ color: oklch(36.8% 0.175 279.4);
Tailwind
colors: {
  custom: {
    50: '#7962b7',
    500: '#342597',
    950: '#000000',
  },
}
SCSS
$custom: #342597;
$custom-light: #7962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342597",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 247.895,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36788,
    "c": 0.17468,
    "h": 279.4
  },
  "luminance": 0.04288
}

Semantic roles & 50–950 ramp

primary
#342597
secondary
#B0BD5B
accent
#E444CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342597

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

Preview Lab → · Contrast checker → · Palette generator →

#342597 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva