#341F9F#341F9F

#341F9F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.190 H 279.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#341F9F
RGBrgb(52, 31, 159)
HSLhsl(250, 67%, 37%)
HSVhsv(250, 81%, 62%)
CMYKcmyk(67.3%, 80.5%, 0%, 37.6%)
CIE-LABlab(24.36, 46.62, -64.99)
CIE-LCHlch(24.36, 79.98, 305.65°)
OKLaboklab(36.88% 0.0299 -0.1877)
OKLCHoklch(36.88% 0.19 279)
XYZxyz(8.1622, 4.2126, 33.1771)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F9F #8A9F1F
analogous
#1F4A9F #341F9F #741F9F
triadic
#341F9F #9F341F #1F9F34
tetradic
#341F9F #9F1F4A #8A9F1F #1F9F74
square
#341F9F #9F1F4A #8A9F1F #1F9F74
split-complementary
#341F9F #9F741F #4A9F1F
monochromatic
#130B39 #23156C #341F9F #4529D2 #6F5ADF

Accessibility & contrast

On white

11.40
#341F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341F9F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F9F#FFFFFF#000000##FFFFFF
##341F9F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341f9f;
/* rgb */ color: rgb(52, 31, 159);
/* oklch */ color: oklch(36.9% 0.190 279.0);
Tailwind
colors: {
  custom: {
    50: '#7b5fbd',
    500: '#341f9f',
    950: '#000000',
  },
}
SCSS
$custom: #341f9f;
$custom-light: #7b5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#341f9f",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 249.844,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36877,
    "c": 0.19005,
    "h": 279
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #341F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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