#334DB9#334DB9

#334DB9 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.173 H 268.5°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#334DB9
RGBrgb(51, 77, 185)
HSLhsl(228, 57%, 46%)
HSVhsv(228, 72%, 73%)
CMYKcmyk(72.4%, 58.4%, 0%, 27.5%)
CIE-LABlab(36.95, 27.86, -59.91)
CIE-LCHlch(36.95, 66.07, 294.94°)
OKLaboklab(46.71% -0.0045 -0.1728)
OKLCHoklch(46.71% 0.173 268.5)
XYZxyz(12.7731, 9.5130, 47.0526)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DB9 #B99F33
analogous
#3390B9 #334DB9 #5C33B9
triadic
#334DB9 #B9334D #4DB933
tetradic
#334DB9 #B93390 #B99F33 #33B95C
square
#334DB9 #B93390 #B99F33 #33B95C
split-complementary
#334DB9 #B95C33 #90B933
monochromatic
#192559 #263989 #334DB9 #5870D1 #8899DE

Accessibility & contrast

On white

7.23
#334DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#334DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DB9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DB9#FFFFFF#000000##FFFFFF
##334DB91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334db9;
/* rgb */ color: rgb(51, 77, 185);
/* oklch */ color: oklch(46.7% 0.173 268.5);
Tailwind
colors: {
  custom: {
    50: '#7d7ecf',
    500: '#334db9',
    950: '#000000',
  },
}
SCSS
$custom: #334db9;
$custom-light: #7d7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#334db9",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 228.358,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4671,
    "c": 0.17286,
    "h": 268.5
  },
  "luminance": 0.09514
}

Semantic roles & 50–950 ramp

primary
#334DB9
secondary
#C8BA80
accent
#C248E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #334DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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