#334E9B#334E9B

#334E9B is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.130 H 266.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#334E9B
RGBrgb(51, 78, 155)
HSLhsl(224, 50%, 40%)
HSVhsv(224, 67%, 61%)
CMYKcmyk(67.1%, 49.7%, 0%, 39.2%)
CIE-LABlab(35.04, 16.08, -45.14)
CIE-LCHlch(35.04, 47.92, 289.60°)
OKLaboklab(44.57% -0.0076 -0.1293)
OKLCHoklch(44.57% 0.13 266.6)
XYZxyz(10.0040, 8.5182, 32.1210)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E9B #9B8033
analogous
#33829B #334E9B #4C339B
triadic
#334E9B #9B334E #4E9B33
tetradic
#334E9B #9B3382 #9B8033 #339B4C
square
#334E9B #9B3382 #9B8033 #339B4C
split-complementary
#334E9B #9B4C33 #829B33
monochromatic
#15203F #24376D #334E9B #4868C3 #768ED2

Accessibility & contrast

On white

7.77
#334E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E9B
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E9B#FFFFFF#000000##FFFFFF
##334E9B1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579E
Deuteranopia (green-blind)
#0A4E99
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334e9b;
/* rgb */ color: rgb(51, 78, 155);
/* oklch */ color: oklch(44.6% 0.130 266.6);
Tailwind
colors: {
  custom: {
    50: '#767fb9',
    500: '#334e9b',
    950: '#000000',
  },
}
SCSS
$custom: #334e9b;
$custom-light: #767fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#334e9b",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 224.423,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44574,
    "c": 0.12957,
    "h": 266.6
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#334E9B
secondary
#BAA76F
accent
#B64EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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