#341F9E#341F9E

#341F9E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.189 H 279.2°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#341F9E
RGBrgb(52, 31, 158)
HSLhsl(250, 67%, 37%)
HSVhsv(250, 80%, 62%)
CMYKcmyk(67.1%, 80.4%, 0%, 38%)
CIE-LABlab(24.25, 46.31, -64.57)
CIE-LCHlch(24.25, 79.46, 305.65°)
OKLaboklab(36.77% 0.0302 -0.1864)
OKLCHoklch(36.77% 0.189 279.2)
XYZxyz(8.0757, 4.1780, 32.7220)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F9E #899E1F
analogous
#1F4A9E #341F9E #741F9E
triadic
#341F9E #9E341F #1F9E34
tetradic
#341F9E #9E1F4A #899E1F #1F9E74
square
#341F9E #9E1F4A #899E1F #1F9E74
split-complementary
#341F9E #9E741F #4A9E1F
monochromatic
#120B38 #23156B #341F9E #4529D1 #6F59DE

Accessibility & contrast

On white

11.44
#341F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#341F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F9E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F9E#FFFFFF#000000##FFFFFF
##341F9E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #341f9e;
/* rgb */ color: rgb(52, 31, 158);
/* oklch */ color: oklch(36.8% 0.189 279.2);
Tailwind
colors: {
  custom: {
    50: '#7b5fbc',
    500: '#341f9e',
    950: '#000000',
  },
}
SCSS
$custom: #341f9e;
$custom-light: #7b5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#341f9e",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 249.921,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36767,
    "c": 0.18888,
    "h": 279.2
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#341F9E
secondary
#B0C256
accent
#EA3ECE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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