#334573#334573

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

Color values

HEX#334573
RGBrgb(51, 69, 115)
HSLhsl(223, 39%, 33%)
HSVhsv(223, 56%, 45%)
CMYKcmyk(55.7%, 40%, 0%, 54.9%)
CIE-LABlab(29.91, 7.51, -28.69)
CIE-LCHlch(29.91, 29.65, 284.67°)
OKLaboklab(39.83% -0.0048 -0.0812)
OKLCHoklch(39.83% 0.081 266.6)
XYZxyz(6.5868, 6.1974, 17.0654)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334573 #736133
analogous
#336573 #334573 #413373
triadic
#334573 #733345 #457333
tetradic
#334573 #733365 #736133 #337341
square
#334573 #733365 #736133 #337341
split-complementary
#334573 #734133 #657333
monochromatic
#0D121E #202C49 #334573 #465E9D #657EBB

Accessibility & contrast

On white

9.38
#334573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334573
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334573#FFFFFF#000000##FFFFFF
##3345731.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334A75
Deuteranopia (green-blind)
#2B4472
Tritanopia (blue-blind)
#134F56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334573;
/* rgb */ color: rgb(51, 69, 115);
/* oklch */ color: oklch(39.8% 0.081 266.6);
Tailwind
colors: {
  custom: {
    50: '#70789b',
    500: '#334573',
    950: '#000000',
  },
}
SCSS
$custom: #334573;
$custom-light: #70789b;
$custom-dark: #000000;
JSON
{
  "hex": "#334573",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 115
  },
  "hsl": {
    "h": 223.125,
    "s": 38.554,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3983,
    "c": 0.08131,
    "h": 266.6
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

primary
#334573
secondary
#A3905F
accent
#AE59CE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334573

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

Preview Lab → · Contrast checker → · Palette generator →

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