#3341A7#3341A7

#3341A7 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.163 H 271.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#3341A7
RGBrgb(51, 65, 167)
HSLhsl(233, 53%, 43%)
HSVhsv(233, 69%, 65%)
CMYKcmyk(69.5%, 61.1%, 0%, 34.5%)
CIE-LABlab(32.42, 29.11, -56.60)
CIE-LCHlch(32.42, 63.65, 297.22°)
OKLaboklab(42.89% 0.0047 -0.1632)
OKLCHoklch(42.89% 0.163 271.6)
XYZxyz(10.2282, 7.2734, 37.4166)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3341A7 #A79933
analogous
#337BA7 #3341A7 #5F33A7
triadic
#3341A7 #A73341 #41A733
tetradic
#3341A7 #A7337B #A79933 #33A75F
square
#3341A7 #A7337B #A79933 #33A75F
split-complementary
#3341A7 #A75F33 #7BA733
monochromatic
#161D49 #252F78 #3341A7 #4E5DC9 #7D88D7

Accessibility & contrast

On white

8.55
#3341A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3341A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3341A7
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3341A7#FFFFFF#000000##FFFFFF
##3341A71.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3341a7;
/* rgb */ color: rgb(51, 65, 167);
/* oklch */ color: oklch(42.9% 0.163 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a75c2',
    500: '#3341a7',
    950: '#000000',
  },
}
SCSS
$custom: #3341a7;
$custom-light: #7a75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3341a7",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 167
  },
  "hsl": {
    "h": 232.759,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42889,
    "c": 0.1633,
    "h": 271.6
  },
  "luminance": 0.07274
}

Semantic roles & 50–950 ramp

primary
#3341A7
secondary
#C0B776
accent
#CB4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3341A7

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

Preview Lab → · Contrast checker → · Palette generator →

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