#334D9A#334D9A

#334D9A is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.3% C 0.129 H 267.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#334D9A
RGBrgb(51, 77, 154)
HSLhsl(225, 50%, 40%)
HSVhsv(225, 67%, 60%)
CMYKcmyk(66.9%, 50%, 0%, 39.6%)
CIE-LABlab(34.69, 16.37, -45.10)
CIE-LCHlch(34.69, 47.98, 289.95°)
OKLaboklab(44.29% -0.0068 -0.1292)
OKLCHoklch(44.29% 0.129 267)
XYZxyz(9.8498, 8.3437, 31.6570)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D9A #9A8033
analogous
#33819A #334D9A #4C339A
triadic
#334D9A #9A334D #4D9A33
tetradic
#334D9A #9A3381 #9A8033 #339A4C
square
#334D9A #9A3381 #9A8033 #339A4C
split-complementary
#334D9A #9A4C33 #819A33
monochromatic
#151F3E #24366C #334D9A #4867C2 #768DD2

Accessibility & contrast

On white

7.87
#334D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#334D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D9A
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D9A#FFFFFF#000000##FFFFFF
##334D9A1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579D
Deuteranopia (green-blind)
#084D98
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334d9a;
/* rgb */ color: rgb(51, 77, 154);
/* oklch */ color: oklch(44.3% 0.129 267.0);
Tailwind
colors: {
  custom: {
    50: '#767eb8',
    500: '#334d9a',
    950: '#000000',
  },
}
SCSS
$custom: #334d9a;
$custom-light: #767eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#334d9a",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 154
  },
  "hsl": {
    "h": 224.854,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44285,
    "c": 0.12942,
    "h": 267
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#334D9A
secondary
#BAA76F
accent
#B64EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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