#334585#334585

#334585 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.109 H 269.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#334585
RGBrgb(51, 69, 133)
HSLhsl(227, 45%, 36%)
HSVhsv(227, 62%, 52%)
CMYKcmyk(61.7%, 48.1%, 0%, 47.8%)
CIE-LABlab(31.00, 13.99, -38.18)
CIE-LCHlch(31.00, 40.66, 290.12°)
OKLaboklab(41.03% -0.0013 -0.109)
OKLCHoklch(41.03% 0.109 269.3)
XYZxyz(7.7256, 6.6529, 23.0628)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334585 #857333
analogous
#336E85 #334585 #4A3385
triadic
#334585 #853345 #458533
tetradic
#334585 #85336E #857333 #33854A
square
#334585 #85336E #857333 #33854A
split-complementary
#334585 #854A33 #6E8533
monochromatic
#11172D #222E59 #334585 #445CB1 #6C80C7

Accessibility & contrast

On white

9.01
#334585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#334585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334585
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334585#FFFFFF#000000##FFFFFF
##3345851.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D87
Deuteranopia (green-blind)
#194684
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334585;
/* rgb */ color: rgb(51, 69, 133);
/* oklch */ color: oklch(41.0% 0.109 269.3);
Tailwind
colors: {
  custom: {
    50: '#7378a9',
    500: '#334585',
    950: '#000000',
  },
}
SCSS
$custom: #334585;
$custom-light: #7378a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334585",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 133
  },
  "hsl": {
    "h": 226.829,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41029,
    "c": 0.10901,
    "h": 269.3
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#334585
secondary
#AE9E65
accent
#B854D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #334585

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

Preview Lab → · Contrast checker → · Palette generator →

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