#334587#334587

#334587 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.2% C 0.112 H 269.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#334587
RGBrgb(51, 69, 135)
HSLhsl(227, 45%, 36%)
HSVhsv(227, 62%, 53%)
CMYKcmyk(62.2%, 48.9%, 0%, 47.1%)
CIE-LABlab(31.13, 14.72, -39.21)
CIE-LCHlch(31.13, 41.88, 290.58°)
OKLaboklab(41.17% -0.001 -0.112)
OKLCHoklch(41.17% 0.112 269.5)
XYZxyz(7.8651, 6.7087, 23.7974)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334587 #877533
analogous
#336F87 #334587 #4B3387
triadic
#334587 #873345 #458733
tetradic
#334587 #87336F #877533 #33874B
square
#334587 #87336F #877533 #33874B
split-complementary
#334587 #874B33 #6F8733
monochromatic
#11182E #222E5B #334587 #445CB3 #6D80C8

Accessibility & contrast

On white

8.97
#334587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#334587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334587
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334587#FFFFFF#000000##FFFFFF
##3345871.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D89
Deuteranopia (green-blind)
#164686
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334587;
/* rgb */ color: rgb(51, 69, 135);
/* oklch */ color: oklch(41.2% 0.112 269.5);
Tailwind
colors: {
  custom: {
    50: '#7378aa',
    500: '#334587',
    950: '#000000',
  },
}
SCSS
$custom: #334587;
$custom-light: #7378aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334587",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 227.143,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41171,
    "c": 0.11202,
    "h": 269.5
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#334587
secondary
#B0A066
accent
#B953D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334587

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

Preview Lab → · Contrast checker → · Palette generator →

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