#3341A8#3341A8

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

Color values

HEX#3341A8
RGBrgb(51, 65, 168)
HSLhsl(233, 53%, 43%)
HSVhsv(233, 70%, 66%)
CMYKcmyk(69.6%, 61.3%, 0%, 34.1%)
CIE-LABlab(32.50, 29.47, -57.07)
CIE-LCHlch(32.50, 64.23, 297.32°)
OKLaboklab(42.98% 0.0047 -0.1646)
OKLCHoklch(42.98% 0.165 271.6)
XYZxyz(10.3210, 7.3106, 37.9054)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3341A8 #A89A33
analogous
#337BA8 #3341A8 #6033A8
triadic
#3341A8 #A83341 #41A833
tetradic
#3341A8 #A8337B #A89A33 #33A860
square
#3341A8 #A8337B #A89A33 #33A860
split-complementary
#3341A8 #A86033 #7BA833
monochromatic
#161D4A #252F79 #3341A8 #4F5DC9 #7E88D8

Accessibility & contrast

On white

8.53
#3341A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3341A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3341A8
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3341A8#FFFFFF#000000##FFFFFF
##3341A81.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3341a8;
/* rgb */ color: rgb(51, 65, 168);
/* oklch */ color: oklch(43.0% 0.165 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a75c3',
    500: '#3341a8',
    950: '#000000',
  },
}
SCSS
$custom: #3341a8;
$custom-light: #7a75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3341a8",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 232.821,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42976,
    "c": 0.16467,
    "h": 271.6
  },
  "luminance": 0.07312
}

Semantic roles & 50–950 ramp

primary
#3341A8
secondary
#C1B876
accent
#CB4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3341A8

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

Preview Lab → · Contrast checker → · Palette generator →

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