#334E85#334E85

#334E85 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.097 H 263.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#334E85
RGBrgb(51, 78, 133)
HSLhsl(220, 45%, 36%)
HSVhsv(220, 62%, 52%)
CMYKcmyk(61.7%, 41.4%, 0%, 47.8%)
CIE-LABlab(33.66, 7.98, -33.94)
CIE-LCHlch(33.66, 34.87, 283.22°)
OKLaboklab(43.07% -0.0115 -0.0964)
OKLCHoklch(43.07% 0.097 263.2)
XYZxyz(8.3218, 7.8453, 23.2615)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E85 #856A33
analogous
#337785 #334E85 #413385
triadic
#334E85 #85334E #4E8533
tetradic
#334E85 #853377 #856A33 #338541
square
#334E85 #853377 #856A33 #338541
split-complementary
#334E85 #854133 #778533
monochromatic
#111A2D #223459 #334E85 #4468B1 #6C8AC7

Accessibility & contrast

On white

8.17
#334E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#334E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E85
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E85#FFFFFF#000000##FFFFFF
##334E851.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365387
Deuteranopia (green-blind)
#2B4C84
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #334e85;
/* rgb */ color: rgb(51, 78, 133);
/* oklch */ color: oklch(43.1% 0.097 263.2);
Tailwind
colors: {
  custom: {
    50: '#727fa9',
    500: '#334e85',
    950: '#000000',
  },
}
SCSS
$custom: #334e85;
$custom-light: #727fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#334e85",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 133
  },
  "hsl": {
    "h": 220.244,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43069,
    "c": 0.09714,
    "h": 263.2
  },
  "luminance": 0.07846
}

Semantic roles & 50–950 ramp

primary
#334E85
secondary
#AE9665
accent
#AA54D4
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #334E85

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

Preview Lab → · Contrast checker → · Palette generator →

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