#3341B2#3341B2

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

Color values

HEX#3341B2
RGBrgb(51, 65, 178)
HSLhsl(233, 55%, 45%)
HSVhsv(233, 71%, 70%)
CMYKcmyk(71.3%, 63.5%, 0%, 30.2%)
CIE-LABlab(33.34, 33.08, -61.66)
CIE-LCHlch(33.34, 69.97, 298.21°)
OKLaboklab(43.86% 0.0044 -0.1781)
OKLCHoklch(43.86% 0.178 271.4)
XYZxyz(11.2887, 7.6976, 43.0017)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3341B2 #B2A433
analogous
#3380B2 #3341B2 #6533B2
triadic
#3341B2 #B23341 #41B233
tetradic
#3341B2 #B23380 #B2A433 #33B265
square
#3341B2 #B23380 #B2A433 #33B265
split-complementary
#3341B2 #B26533 #80B233
monochromatic
#181E53 #253082 #3341B2 #5462CE #848DDC

Accessibility & contrast

On white

8.27
#3341B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3341B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3341B2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3341B2#FFFFFF#000000##FFFFFF
##3341B21.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3341b2;
/* rgb */ color: rgb(51, 65, 178);
/* oklch */ color: oklch(43.9% 0.178 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c75ca',
    500: '#3341b2',
    950: '#000000',
  },
}
SCSS
$custom: #3341b2;
$custom-light: #7c75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3341b2",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 233.386,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43857,
    "c": 0.17812,
    "h": 271.4
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3341B2

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

Preview Lab → · Contrast checker → · Palette generator →

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