#334584#334584

#334584 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.107 H 269.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#334584
RGBrgb(51, 69, 132)
HSLhsl(227, 44%, 36%)
HSVhsv(227, 61%, 52%)
CMYKcmyk(61.4%, 47.7%, 0%, 48.2%)
CIE-LABlab(30.94, 13.62, -37.66)
CIE-LCHlch(30.94, 40.05, 289.88°)
OKLaboklab(40.96% -0.0014 -0.1075)
OKLCHoklch(40.96% 0.108 269.2)
XYZxyz(7.6568, 6.6254, 22.7007)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334584 #847233
analogous
#336D84 #334584 #493384
triadic
#334584 #843345 #458433
tetradic
#334584 #84336D #847233 #338449
square
#334584 #84336D #847233 #338449
split-complementary
#334584 #844933 #6D8433
monochromatic
#11172C #222E58 #334584 #445CB0 #6B80C6

Accessibility & contrast

On white

9.03
#334584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334584
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334584#FFFFFF#000000##FFFFFF
##3345841.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274D86
Deuteranopia (green-blind)
#1B4583
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334584;
/* rgb */ color: rgb(51, 69, 132);
/* oklch */ color: oklch(41.0% 0.107 269.2);
Tailwind
colors: {
  custom: {
    50: '#7278a8',
    500: '#334584',
    950: '#000000',
  },
}
SCSS
$custom: #334584;
$custom-light: #7278a8;
$custom-dark: #000000;
JSON
{
  "hex": "#334584",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 132
  },
  "hsl": {
    "h": 226.667,
    "s": 44.262,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40959,
    "c": 0.1075,
    "h": 269.2
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334584

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

Preview Lab → · Contrast checker → · Palette generator →

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