#341FA1#341FA1

#341FA1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.192 H 278.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#341FA1
RGBrgb(52, 31, 161)
HSLhsl(250, 68%, 38%)
HSVhsv(250, 81%, 63%)
CMYKcmyk(67.7%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.58, 47.23, -65.84)
CIE-LCHlch(24.58, 81.03, 305.65°)
OKLaboklab(37.1% 0.0293 -0.1902)
OKLCHoklch(37.1% 0.192 278.8)
XYZxyz(8.3371, 4.2825, 34.0986)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341FA1 #8CA11F
analogous
#1F4BA1 #341FA1 #751FA1
triadic
#341FA1 #A1341F #1FA134
tetradic
#341FA1 #A11F4B #8CA11F #1FA175
square
#341FA1 #A11F4B #8CA11F #1FA175
split-complementary
#341FA1 #A1751F #4BA11F
monochromatic
#130B3A #23156E #341FA1 #4529D4 #705BDF

Accessibility & contrast

On white

11.31
#341FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#341FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341FA1
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341FA1#FFFFFF#000000##FFFFFF
##341FA11.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #341fa1;
/* rgb */ color: rgb(52, 31, 161);
/* oklch */ color: oklch(37.1% 0.192 278.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fbe',
    500: '#341fa1',
    950: '#000000',
  },
}
SCSS
$custom: #341fa1;
$custom-light: #7c5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#341fa1",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 249.692,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37097,
    "c": 0.19241,
    "h": 278.8
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#341FA1
secondary
#B2C458
accent
#EB3DCF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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