#334F85#334F85

#334F85 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.096 H 262.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#334F85
RGBrgb(51, 79, 133)
HSLhsl(220, 45%, 36%)
HSVhsv(220, 62%, 52%)
CMYKcmyk(61.7%, 40.6%, 0%, 47.8%)
CIE-LABlab(33.96, 7.32, -33.47)
CIE-LCHlch(33.96, 34.26, 282.33°)
OKLaboklab(43.3% -0.0127 -0.095)
OKLCHoklch(43.3% 0.096 262.4)
XYZxyz(8.3934, 7.9885, 23.2854)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F85 #856933
analogous
#337885 #334F85 #403385
triadic
#334F85 #85334F #4F8533
tetradic
#334F85 #853378 #856933 #338540
square
#334F85 #853378 #856933 #338540
split-complementary
#334F85 #854033 #788533
monochromatic
#111A2D #223559 #334F85 #4469B1 #6C8BC7

Accessibility & contrast

On white

8.08
#334F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#334F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F85
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F85#FFFFFF#000000##FFFFFF
##334F851.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385487
Deuteranopia (green-blind)
#2D4C84
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334f85;
/* rgb */ color: rgb(51, 79, 133);
/* oklch */ color: oklch(43.3% 0.096 262.4);
Tailwind
colors: {
  custom: {
    50: '#7280a9',
    500: '#334f85',
    950: '#000000',
  },
}
SCSS
$custom: #334f85;
$custom-light: #7280a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334f85",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 133
  },
  "hsl": {
    "h": 219.512,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43301,
    "c": 0.0959,
    "h": 262.4
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#334F85
secondary
#AE9565
accent
#A854D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #334F85

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

Preview Lab → · Contrast checker → · Palette generator →

#334F85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva