#3341B1#3341B1

#3341B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.177 H 271.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3341B1
RGBrgb(51, 65, 177)
HSLhsl(233, 55%, 45%)
HSVhsv(233, 71%, 69%)
CMYKcmyk(71.2%, 63.3%, 0%, 30.6%)
CIE-LABlab(33.26, 32.72, -61.20)
CIE-LCHlch(33.26, 69.40, 298.13°)
OKLaboklab(43.77% 0.0044 -0.1767)
OKLCHoklch(43.77% 0.177 271.4)
XYZxyz(11.1887, 7.6576, 42.4749)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3341B1 #B1A333
analogous
#3380B1 #3341B1 #6433B1
triadic
#3341B1 #B13341 #41B133
tetradic
#3341B1 #B13380 #B1A333 #33B164
square
#3341B1 #B13380 #B1A333 #33B164
split-complementary
#3341B1 #B16433 #80B133
monochromatic
#181E52 #253081 #3341B1 #5461CE #838DDB

Accessibility & contrast

On white

8.29
#3341B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3341B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3341B1
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3341B1#FFFFFF#000000##FFFFFF
##3341B11.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3341b1;
/* rgb */ color: rgb(51, 65, 177);
/* oklch */ color: oklch(43.8% 0.177 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c75c9',
    500: '#3341b1',
    950: '#000000',
  },
}
SCSS
$custom: #3341b1;
$custom-light: #7c75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3341b1",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 233.333,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.17679,
    "h": 271.4
  },
  "luminance": 0.07659
}

Semantic roles & 50–950 ramp

primary
#3341B1
secondary
#C5BD7B
accent
#CE49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3341B1

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

Preview Lab → · Contrast checker → · Palette generator →

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