#334985#334985

#334985 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.104 H 266.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#334985
RGBrgb(51, 73, 133)
HSLhsl(224, 45%, 36%)
HSVhsv(224, 62%, 52%)
CMYKcmyk(61.7%, 45.1%, 0%, 47.8%)
CIE-LABlab(32.17, 11.30, -36.31)
CIE-LCHlch(32.17, 38.03, 287.29°)
OKLaboklab(41.92% -0.0058 -0.1035)
OKLCHoklch(41.92% 0.104 266.8)
XYZxyz(7.9800, 7.1617, 23.1476)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334985 #856F33
analogous
#337285 #334985 #463385
triadic
#334985 #853349 #498533
tetradic
#334985 #853372 #856F33 #338546
square
#334985 #853372 #856F33 #338546
split-complementary
#334985 #854633 #728533
monochromatic
#11182D #223159 #334985 #4461B1 #6C84C7

Accessibility & contrast

On white

8.63
#334985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#334985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334985
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334985#FFFFFF#000000##FFFFFF
##3349851.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5087
Deuteranopia (green-blind)
#224884
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334985;
/* rgb */ color: rgb(51, 73, 133);
/* oklch */ color: oklch(41.9% 0.104 266.8);
Tailwind
colors: {
  custom: {
    50: '#727ba9',
    500: '#334985',
    950: '#000000',
  },
}
SCSS
$custom: #334985;
$custom-light: #727ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#334985",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 133
  },
  "hsl": {
    "h": 223.902,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.10362,
    "h": 266.8
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#334985
secondary
#AE9B65
accent
#B254D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334985

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

Preview Lab → · Contrast checker → · Palette generator →

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