#334E9D#334E9D

#334E9D is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.132 H 266.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#334E9D
RGBrgb(51, 78, 157)
HSLhsl(225, 51%, 41%)
HSVhsv(225, 68%, 62%)
CMYKcmyk(67.5%, 50.3%, 0%, 38.4%)
CIE-LABlab(35.17, 16.82, -46.13)
CIE-LCHlch(35.17, 49.10, 290.03°)
OKLaboklab(44.72% -0.0074 -0.1322)
OKLCHoklch(44.72% 0.132 266.8)
XYZxyz(10.1733, 8.5859, 33.0129)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E9D #9D8233
analogous
#33839D #334E9D #4D339D
triadic
#334E9D #9D334E #4E9D33
tetradic
#334E9D #9D3383 #9D8233 #339D4D
square
#334E9D #9D3383 #9D8233 #339D4D
split-complementary
#334E9D #9D4D33 #839D33
monochromatic
#152041 #24376F #334E9D #4968C4 #778FD3

Accessibility & contrast

On white

7.73
#334E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#334E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E9D
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E9D#FFFFFF#000000##FFFFFF
##334E9D1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#034E9B
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334e9d;
/* rgb */ color: rgb(51, 78, 157);
/* oklch */ color: oklch(44.7% 0.132 266.8);
Tailwind
colors: {
  custom: {
    50: '#777fba',
    500: '#334e9d',
    950: '#000000',
  },
}
SCSS
$custom: #334e9d;
$custom-light: #777fba;
$custom-dark: #000000;
JSON
{
  "hex": "#334e9d",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 224.717,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4472,
    "c": 0.13246,
    "h": 266.8
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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