#334CB5#334CB5

#334CB5 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.169 H 268.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#334CB5
RGBrgb(51, 76, 181)
HSLhsl(228, 56%, 45%)
HSVhsv(228, 72%, 71%)
CMYKcmyk(71.8%, 58%, 0%, 29%)
CIE-LABlab(36.38, 27.04, -58.48)
CIE-LCHlch(36.38, 64.43, 294.81°)
OKLaboklab(46.18% -0.0039 -0.1686)
OKLCHoklch(46.18% 0.169 268.7)
XYZxyz(12.2873, 9.2076, 44.8368)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB5 #B59C33
analogous
#338DB5 #334CB5 #5B33B5
triadic
#334CB5 #B5334C #4CB533
tetradic
#334CB5 #B5338D #B59C33 #33B55B
square
#334CB5 #B5338D #B59C33 #33B55B
split-complementary
#334CB5 #B55B33 #8DB533
monochromatic
#182456 #263885 #334CB5 #566DCF #8696DD

Accessibility & contrast

On white

7.39
#334CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334CB5
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB5#FFFFFF#000000##FFFFFF
##334CB51.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334cb5;
/* rgb */ color: rgb(51, 76, 181);
/* oklch */ color: oklch(46.2% 0.169 268.7);
Tailwind
colors: {
  custom: {
    50: '#7c7dcc',
    500: '#334cb5',
    950: '#000000',
  },
}
SCSS
$custom: #334cb5;
$custom-light: #7c7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb5",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 228.462,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46184,
    "c": 0.16866,
    "h": 268.7
  },
  "luminance": 0.09209
}

Semantic roles & 50–950 ramp

primary
#334CB5
secondary
#C6B87D
accent
#C248DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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