#334F9D#334F9D

#334F9D is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.131 H 266.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#334F9D
RGBrgb(51, 79, 157)
HSLhsl(224, 51%, 41%)
HSVhsv(224, 68%, 62%)
CMYKcmyk(67.5%, 49.7%, 0%, 38.4%)
CIE-LABlab(35.46, 16.15, -45.67)
CIE-LCHlch(35.46, 48.45, 289.48°)
OKLaboklab(44.94% -0.0084 -0.1309)
OKLCHoklch(44.94% 0.131 266.3)
XYZxyz(10.2449, 8.7291, 33.0367)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F9D #9D8133
analogous
#33849D #334F9D #4C339D
triadic
#334F9D #9D334F #4F9D33
tetradic
#334F9D #9D3384 #9D8133 #339D4C
square
#334F9D #9D3384 #9D8133 #339D4C
split-complementary
#334F9D #9D4C33 #849D33
monochromatic
#152141 #24386F #334F9D #496AC4 #7790D3

Accessibility & contrast

On white

7.65
#334F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#334F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F9D
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F9D#FFFFFF#000000##FFFFFF
##334F9D1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2558A0
Deuteranopia (green-blind)
#094F9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334f9d;
/* rgb */ color: rgb(51, 79, 157);
/* oklch */ color: oklch(44.9% 0.131 266.3);
Tailwind
colors: {
  custom: {
    50: '#777fba',
    500: '#334f9d',
    950: '#000000',
  },
}
SCSS
$custom: #334f9d;
$custom-light: #777fba;
$custom-dark: #000000;
JSON
{
  "hex": "#334f9d",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 224.151,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44936,
    "c": 0.13117,
    "h": 266.3
  },
  "luminance": 0.0873
}

Semantic roles & 50–950 ramp

primary
#334F9D
secondary
#BBA870
accent
#B54DDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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