#334D9F#334D9F

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

Color values

HEX#334D9F
RGBrgb(51, 77, 159)
HSLhsl(226, 51%, 41%)
HSVhsv(226, 68%, 62%)
CMYKcmyk(67.9%, 51.6%, 0%, 37.6%)
CIE-LABlab(35.03, 18.23, -47.56)
CIE-LCHlch(35.03, 50.94, 290.97°)
OKLaboklab(44.66% -0.0062 -0.1365)
OKLCHoklch(44.66% 0.137 267.4)
XYZxyz(10.2750, 8.5138, 33.8960)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D9F #9F8533
analogous
#33839F #334D9F #4F339F
triadic
#334D9F #9F334D #4D9F33
tetradic
#334D9F #9F3383 #9F8533 #339F4F
square
#334D9F #9F3383 #9F8533 #339F4F
split-complementary
#334D9F #9F4F33 #839F33
monochromatic
#152042 #243771 #334D9F #4A68C5 #798FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334D9F#FFFFFF#000000##FFFFFF
##334D9F1.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)
#1D58A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334d9f;
/* rgb */ color: rgb(51, 77, 159);
/* oklch */ color: oklch(44.7% 0.137 267.4);
Tailwind
colors: {
  custom: {
    50: '#777ebc',
    500: '#334d9f',
    950: '#000000',
  },
}
SCSS
$custom: #334d9f;
$custom-light: #777ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#334d9f",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 159
  },
  "hsl": {
    "h": 225.556,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.13663,
    "h": 267.4
  },
  "luminance": 0.08515
}

Semantic roles & 50–950 ramp

primary
#334D9F
secondary
#BCAA71
accent
#B94DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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