#334872#334872

#334872 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.5% C 0.076 H 263.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#334872
RGBrgb(51, 72, 114)
HSLhsl(220, 38%, 32%)
HSVhsv(220, 55%, 45%)
CMYKcmyk(55.3%, 36.8%, 0%, 55.3%)
CIE-LABlab(30.77, 5.16, -26.70)
CIE-LCHlch(30.77, 27.19, 280.93°)
OKLaboklab(40.48% -0.009 -0.0753)
OKLCHoklch(40.48% 0.076 263.2)
XYZxyz(6.7188, 6.5530, 16.8271)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334872 #725D33
analogous
#336872 #334872 #3E3372
triadic
#334872 #723348 #487233
tetradic
#334872 #723368 #725D33 #33723E
square
#334872 #723368 #725D33 #33723E
split-complementary
#334872 #723E33 #687233
monochromatic
#0D131D #202D48 #334872 #46639C #6582BA

Accessibility & contrast

On white

9.09
#334872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#334872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334872
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334872#FFFFFF#000000##FFFFFF
##3348721.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374C74
Deuteranopia (green-blind)
#304671
Tritanopia (blue-blind)
#135157
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334872;
/* rgb */ color: rgb(51, 72, 114);
/* oklch */ color: oklch(40.5% 0.076 263.2);
Tailwind
colors: {
  custom: {
    50: '#6f7a9b',
    500: '#334872',
    950: '#000000',
  },
}
SCSS
$custom: #334872;
$custom-light: #6f7a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#334872",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 220,
    "s": 38.182,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.07587,
    "h": 263.2
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#334872
secondary
#A28C5F
accent
#A75ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334872

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

Preview Lab → · Contrast checker → · Palette generator →

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