#341FA4#341FA4

#341FA4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.196 H 278.3°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#341FA4
RGBrgb(52, 31, 164)
HSLhsl(249, 68%, 38%)
HSVhsv(249, 81%, 64%)
CMYKcmyk(68.3%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.92, 48.13, -67.11)
CIE-LCHlch(24.92, 82.59, 305.65°)
OKLaboklab(37.43% 0.0284 -0.1939)
OKLCHoklch(37.43% 0.196 278.3)
XYZxyz(8.6048, 4.3896, 35.5086)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341FA4 #8FA41F
analogous
#1F4CA4 #341FA4 #761FA4
triadic
#341FA4 #A4341F #1FA434
tetradic
#341FA4 #A41F4C #8FA41F #1FA476
square
#341FA4 #A41F4C #8FA41F #1FA476
split-complementary
#341FA4 #A4761F #4CA41F
monochromatic
#130C3D #241571 #341FA4 #452AD7 #725DE0

Accessibility & contrast

On white

11.18
#341FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#341FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341FA4
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341FA4#FFFFFF#000000##FFFFFF
##341FA41.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #341fa4;
/* rgb */ color: rgb(52, 31, 164);
/* oklch */ color: oklch(37.4% 0.196 278.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fc0',
    500: '#341fa4',
    950: '#000000',
  },
}
SCSS
$custom: #341fa4;
$custom-light: #7c5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#341fa4",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 249.474,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37428,
    "c": 0.19593,
    "h": 278.3
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#341FA4
secondary
#B4C55A
accent
#EB3DD0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341FA4

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

Preview Lab → · Contrast checker → · Palette generator →

#341FA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva