#334F96#334F96

#334F96 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.121 H 265.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#334F96
RGBrgb(51, 79, 150)
HSLhsl(223, 49%, 39%)
HSVhsv(223, 66%, 59%)
CMYKcmyk(66%, 47.3%, 0%, 41.2%)
CIE-LABlab(35.00, 13.56, -42.19)
CIE-LCHlch(35.00, 44.31, 287.81°)
OKLaboklab(44.44% -0.0094 -0.1206)
OKLCHoklch(44.44% 0.121 265.6)
XYZxyz(9.6643, 8.4969, 29.9790)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F96 #967A33
analogous
#338196 #334F96 #483396
triadic
#334F96 #96334F #4F9633
tetradic
#334F96 #963381 #967A33 #339648
square
#334F96 #963381 #967A33 #339648
split-complementary
#334F96 #964833 #819633
monochromatic
#141F3B #233768 #334F96 #4669C0 #748ED0

Accessibility & contrast

On white

7.78
#334F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#334F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F96
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F96#FFFFFF#000000##FFFFFF
##334F961.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5799
Deuteranopia (green-blind)
#194E95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334f96;
/* rgb */ color: rgb(51, 79, 150);
/* oklch */ color: oklch(44.4% 0.121 265.6);
Tailwind
colors: {
  custom: {
    50: '#757fb5',
    500: '#334f96',
    950: '#000000',
  },
}
SCSS
$custom: #334f96;
$custom-light: #757fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#334f96",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 223.03,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44436,
    "c": 0.121,
    "h": 265.6
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#334F96
secondary
#B8A36D
accent
#B24FD9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334F96

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

Preview Lab → · Contrast checker → · Palette generator →

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