#334986#334986

#334986 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.0% C 0.105 H 266.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#334986
RGBrgb(51, 73, 134)
HSLhsl(224, 45%, 36%)
HSVhsv(224, 62%, 53%)
CMYKcmyk(61.9%, 45.5%, 0%, 47.5%)
CIE-LABlab(32.23, 11.67, -36.83)
CIE-LCHlch(32.23, 38.63, 287.58°)
OKLaboklab(41.99% -0.0056 -0.105)
OKLCHoklch(41.99% 0.105 266.9)
XYZxyz(8.0494, 7.1895, 23.5132)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334986 #867033
analogous
#337386 #334986 #473386
triadic
#334986 #863349 #498633
tetradic
#334986 #863373 #867033 #338647
square
#334986 #863373 #867033 #338647
split-complementary
#334986 #864733 #738633
monochromatic
#11192D #22315A #334986 #4461B2 #6C84C7

Accessibility & contrast

On white

8.61
#334986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#334986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334986
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334986#FFFFFF#000000##FFFFFF
##3349861.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5088
Deuteranopia (green-blind)
#214885
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334986;
/* rgb */ color: rgb(51, 73, 134);
/* oklch */ color: oklch(42.0% 0.105 266.9);
Tailwind
colors: {
  custom: {
    50: '#737ba9',
    500: '#334986',
    950: '#000000',
  },
}
SCSS
$custom: #334986;
$custom-light: #737ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#334986",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 134
  },
  "hsl": {
    "h": 224.096,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41992,
    "c": 0.10513,
    "h": 266.9
  },
  "luminance": 0.0719
}

Semantic roles & 50–950 ramp

primary
#334986
secondary
#AF9C66
accent
#B253D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334986

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

Preview Lab → · Contrast checker → · Palette generator →

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