#3341A2#3341A2

#3341A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.156 H 271.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#3341A2
RGBrgb(51, 65, 162)
HSLhsl(232, 52%, 42%)
HSVhsv(232, 69%, 64%)
CMYKcmyk(68.5%, 59.9%, 0%, 36.5%)
CIE-LABlab(32.02, 27.29, -54.26)
CIE-LCHlch(32.02, 60.73, 296.70°)
OKLaboklab(42.46% 0.0047 -0.1563)
OKLCHoklch(42.46% 0.156 271.7)
XYZxyz(9.7749, 7.0921, 35.0292)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3341A2 #A29433
analogous
#3379A2 #3341A2 #5C33A2
triadic
#3341A2 #A23341 #41A233
tetradic
#3341A2 #A23379 #A29433 #33A25C
square
#3341A2 #A23379 #A29433 #33A25C
split-complementary
#3341A2 #A25C33 #79A233
monochromatic
#161C45 #242E73 #3341A2 #4C5BC7 #7A86D5

Accessibility & contrast

On white

8.68
#3341A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3341A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3341A2
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3341A2#FFFFFF#000000##FFFFFF
##3341A21.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3341a2;
/* rgb */ color: rgb(51, 65, 162);
/* oklch */ color: oklch(42.5% 0.156 271.7);
Tailwind
colors: {
  custom: {
    50: '#7975be',
    500: '#3341a2',
    950: '#000000',
  },
}
SCSS
$custom: #3341a2;
$custom-light: #7975be;
$custom-dark: #000000;
JSON
{
  "hex": "#3341a2",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 232.432,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42461,
    "c": 0.15641,
    "h": 271.7
  },
  "luminance": 0.07093
}

Semantic roles & 50–950 ramp

primary
#3341A2
secondary
#BEB473
accent
#C94CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3341A2

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

Preview Lab → · Contrast checker → · Palette generator →

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