#3341A1#3341A1

#3341A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.155 H 271.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#3341A1
RGBrgb(51, 65, 161)
HSLhsl(232, 52%, 42%)
HSVhsv(232, 68%, 63%)
CMYKcmyk(68.3%, 59.6%, 0%, 36.9%)
CIE-LABlab(31.94, 26.93, -53.78)
CIE-LCHlch(31.94, 60.15, 296.60°)
OKLaboklab(42.38% 0.0047 -0.1549)
OKLCHoklch(42.38% 0.155 271.8)
XYZxyz(9.6864, 7.0567, 34.5629)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3341A1 #A19333
analogous
#3378A1 #3341A1 #5C33A1
triadic
#3341A1 #A13341 #41A133
tetradic
#3341A1 #A13378 #A19333 #33A15C
square
#3341A1 #A13378 #A19333 #33A15C
split-complementary
#3341A1 #A15C33 #78A133
monochromatic
#161B44 #242E73 #3341A1 #4B5BC6 #7A85D5

Accessibility & contrast

On white

8.71
#3341A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3341A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3341A1
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3341A1#FFFFFF#000000##FFFFFF
##3341A11.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3341a1;
/* rgb */ color: rgb(51, 65, 161);
/* oklch */ color: oklch(42.4% 0.155 271.8);
Tailwind
colors: {
  custom: {
    50: '#7875be',
    500: '#3341a1',
    950: '#000000',
  },
}
SCSS
$custom: #3341a1;
$custom-light: #7875be;
$custom-dark: #000000;
JSON
{
  "hex": "#3341a1",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 161
  },
  "hsl": {
    "h": 232.364,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.15502,
    "h": 271.8
  },
  "luminance": 0.07058
}

Semantic roles & 50–950 ramp

primary
#3341A1
secondary
#BDB472
accent
#C94CDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3341A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3341A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva