#334191#334191

#334191 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.132 H 271.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#334191
RGBrgb(51, 65, 145)
HSLhsl(231, 48%, 38%)
HSVhsv(231, 65%, 57%)
CMYKcmyk(64.8%, 55.2%, 0%, 43.1%)
CIE-LABlab(30.71, 21.08, -46.05)
CIE-LCHlch(30.71, 50.64, 294.60°)
OKLaboklab(41.07% 0.0042 -0.1322)
OKLCHoklch(41.07% 0.132 271.8)
XYZxyz(8.3647, 6.5280, 27.6018)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334191 #918333
analogous
#337091 #334191 #543391
triadic
#334191 #913341 #419133
tetradic
#334191 #913370 #918333 #339154
square
#334191 #913370 #918333 #339154
split-complementary
#334191 #915433 #709133
monochromatic
#131836 #232D64 #334191 #4456BD #717FCD

Accessibility & contrast

On white

9.11
#334191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#334191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334191
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334191#FFFFFF#000000##FFFFFF
##3341911.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094D94
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334191;
/* rgb */ color: rgb(51, 65, 145);
/* oklch */ color: oklch(41.1% 0.132 271.8);
Tailwind
colors: {
  custom: {
    50: '#7575b2',
    500: '#334191',
    950: '#000000',
  },
}
SCSS
$custom: #334191;
$custom-light: #7575b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334191",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 145
  },
  "hsl": {
    "h": 231.064,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41071,
    "c": 0.13227,
    "h": 271.8
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#334191
secondary
#B5AA6B
accent
#C350D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334191

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

Preview Lab → · Contrast checker → · Palette generator →

#334191 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva