#334591#334591

#334591 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.9% C 0.127 H 270.1°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#334591
RGBrgb(51, 69, 145)
HSLhsl(229, 48%, 38%)
HSVhsv(229, 65%, 57%)
CMYKcmyk(64.8%, 52.4%, 0%, 43.1%)
CIE-LABlab(31.82, 18.39, -44.26)
CIE-LCHlch(31.82, 47.93, 292.56°)
OKLaboklab(41.91% 0.0002 -0.1269)
OKLCHoklch(41.91% 0.127 270.1)
XYZxyz(8.6025, 7.0036, 27.6811)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334591 #917F33
analogous
#337491 #334591 #503391
triadic
#334591 #913345 #459133
tetradic
#334591 #913374 #917F33 #339150
square
#334591 #913374 #917F33 #339150
split-complementary
#334591 #915033 #749133
monochromatic
#131A36 #232F64 #334591 #445BBD #7183CD

Accessibility & contrast

On white

8.75
#334591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#334591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334591
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334591#FFFFFF#000000##FFFFFF
##3345911.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194F94
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#005764
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334591;
/* rgb */ color: rgb(51, 69, 145);
/* oklch */ color: oklch(41.9% 0.127 270.1);
Tailwind
colors: {
  custom: {
    50: '#7578b2',
    500: '#334591',
    950: '#000000',
  },
}
SCSS
$custom: #334591;
$custom-light: #7578b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334591",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 228.511,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41907,
    "c": 0.12688,
    "h": 270.1
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#334591
secondary
#B5A76B
accent
#BE50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334591

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

Preview Lab → · Contrast checker → · Palette generator →

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