#334572#334572

#334572 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.8% C 0.080 H 266.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#334572
RGBrgb(51, 69, 114)
HSLhsl(223, 38%, 32%)
HSVhsv(223, 55%, 45%)
CMYKcmyk(55.3%, 39.5%, 0%, 55.3%)
CIE-LABlab(29.85, 7.16, -28.14)
CIE-LCHlch(29.85, 29.04, 284.27°)
OKLaboklab(39.77% -0.0051 -0.0796)
OKLCHoklch(39.77% 0.08 266.3)
XYZxyz(6.5296, 6.1745, 16.7640)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334572 #726033
analogous
#336572 #334572 #403372
triadic
#334572 #723345 #457233
tetradic
#334572 #723365 #726033 #337240
square
#334572 #723365 #726033 #337240
split-complementary
#334572 #724033 #657233
monochromatic
#0D121D #202B48 #334572 #465F9C #657DBA

Accessibility & contrast

On white

9.40
#334572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#334572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334572
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334572#FFFFFF#000000##FFFFFF
##3345721.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334974
Deuteranopia (green-blind)
#2C4471
Tritanopia (blue-blind)
#144F56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334572;
/* rgb */ color: rgb(51, 69, 114);
/* oklch */ color: oklch(39.8% 0.080 266.3);
Tailwind
colors: {
  custom: {
    50: '#6f789b',
    500: '#334572',
    950: '#000000',
  },
}
SCSS
$custom: #334572;
$custom-light: #6f789b;
$custom-dark: #000000;
JSON
{
  "hex": "#334572",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 114
  },
  "hsl": {
    "h": 222.857,
    "s": 38.182,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39768,
    "c": 0.07975,
    "h": 266.3
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#334572
secondary
#A28F5F
accent
#AD5ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334572

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

Preview Lab → · Contrast checker → · Palette generator →

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