#334DB1#334DB1

#334DB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.162 H 268.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#334DB1
RGBrgb(51, 77, 177)
HSLhsl(228, 55%, 45%)
HSVhsv(228, 71%, 69%)
CMYKcmyk(71.2%, 56.5%, 0%, 30.6%)
CIE-LABlab(36.34, 24.91, -56.19)
CIE-LCHlch(36.34, 61.46, 293.91°)
OKLaboklab(46.06% -0.0048 -0.1619)
OKLCHoklch(46.06% 0.162 268.3)
XYZxyz(11.9522, 9.1847, 42.7294)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DB1 #B19733
analogous
#338CB1 #334DB1 #5833B1
triadic
#334DB1 #B1334D #4DB133
tetradic
#334DB1 #B1338C #B19733 #33B158
square
#334DB1 #B1338C #B19733 #33B158
split-complementary
#334DB1 #B15833 #8CB133
monochromatic
#182452 #253881 #334DB1 #546DCE #8395DB

Accessibility & contrast

On white

7.40
#334DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#334DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DB1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DB1#FFFFFF#000000##FFFFFF
##334DB11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334db1;
/* rgb */ color: rgb(51, 77, 177);
/* oklch */ color: oklch(46.1% 0.162 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ec9',
    500: '#334db1',
    950: '#000000',
  },
}
SCSS
$custom: #334db1;
$custom-light: #7b7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#334db1",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 227.619,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46055,
    "c": 0.16194,
    "h": 268.3
  },
  "luminance": 0.09186
}

Semantic roles & 50–950 ramp

primary
#334DB1
secondary
#C5B67B
accent
#C049DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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