#334886#334886

#334886 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.106 H 267.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#334886
RGBrgb(51, 72, 134)
HSLhsl(225, 45%, 36%)
HSVhsv(225, 62%, 53%)
CMYKcmyk(61.9%, 46.3%, 0%, 47.5%)
CIE-LABlab(31.94, 12.34, -37.30)
CIE-LCHlch(31.94, 39.28, 288.30°)
OKLaboklab(41.77% -0.0045 -0.1064)
OKLCHoklch(41.77% 0.106 267.6)
XYZxyz(7.9842, 7.0591, 23.4914)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334886 #867133
analogous
#337286 #334886 #483386
triadic
#334886 #863348 #488633
tetradic
#334886 #863372 #867133 #338648
square
#334886 #863372 #867133 #338648
split-complementary
#334886 #864833 #728633
monochromatic
#11182D #22305A #334886 #4460B2 #6C83C7

Accessibility & contrast

On white

8.71
#334886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#334886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334886
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334886#FFFFFF#000000##FFFFFF
##3348861.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4F88
Deuteranopia (green-blind)
#1F4885
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334886;
/* rgb */ color: rgb(51, 72, 134);
/* oklch */ color: oklch(41.8% 0.106 267.6);
Tailwind
colors: {
  custom: {
    50: '#737aaa',
    500: '#334886',
    950: '#000000',
  },
}
SCSS
$custom: #334886;
$custom-light: #737aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#334886",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 134
  },
  "hsl": {
    "h": 224.819,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41767,
    "c": 0.10646,
    "h": 267.6
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#334886
secondary
#AF9C66
accent
#B453D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334886

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

Preview Lab → · Contrast checker → · Palette generator →

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