#334E9A#334E9A

#334E9A is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.128 H 266.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#334E9A
RGBrgb(51, 78, 154)
HSLhsl(224, 50%, 40%)
HSVhsv(224, 67%, 60%)
CMYKcmyk(66.9%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.97, 15.70, -44.64)
CIE-LCHlch(34.97, 47.33, 289.38°)
OKLaboklab(44.5% -0.0078 -0.1279)
OKLCHoklch(44.5% 0.128 266.5)
XYZxyz(9.9203, 8.4847, 31.6805)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E9A #9A7F33
analogous
#33819A #334E9A #4C339A
triadic
#334E9A #9A334E #4E9A33
tetradic
#334E9A #9A3381 #9A7F33 #339A4C
square
#334E9A #9A3381 #9A7F33 #339A4C
split-complementary
#334E9A #9A4C33 #819A33
monochromatic
#151F3E #24376C #334E9A #4868C2 #768ED2

Accessibility & contrast

On white

7.79
#334E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E9A
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E9A#FFFFFF#000000##FFFFFF
##334E9A1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579D
Deuteranopia (green-blind)
#0D4E98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334e9a;
/* rgb */ color: rgb(51, 78, 154);
/* oklch */ color: oklch(44.5% 0.128 266.5);
Tailwind
colors: {
  custom: {
    50: '#767fb8',
    500: '#334e9a',
    950: '#000000',
  },
}
SCSS
$custom: #334e9a;
$custom-light: #767fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#334e9a",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 224.272,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44502,
    "c": 0.12813,
    "h": 266.5
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#334E9A
secondary
#BAA66F
accent
#B54EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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