#334CB0#334CB0

#334CB0 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.162 H 268.6°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#334CB0
RGBrgb(51, 76, 176)
HSLhsl(228, 55%, 45%)
HSVhsv(228, 71%, 69%)
CMYKcmyk(71%, 56.8%, 0%, 31%)
CIE-LABlab(36.00, 25.19, -56.15)
CIE-LCHlch(36.00, 61.54, 294.17°)
OKLaboklab(45.78% -0.004 -0.1618)
OKLCHoklch(45.78% 0.162 268.6)
XYZxyz(11.7835, 9.0061, 42.1832)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB0 #B09733
analogous
#338BB0 #334CB0 #5933B0
triadic
#334CB0 #B0334C #4CB033
tetradic
#334CB0 #B0338B #B09733 #33B059
square
#334CB0 #B0338B #B09733 #33B059
split-complementary
#334CB0 #B05933 #8BB033
monochromatic
#182351 #253881 #334CB0 #536BCD #8294DB

Accessibility & contrast

On white

7.50
#334CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#334CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB0
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB0#FFFFFF#000000##FFFFFF
##334CB01.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334cb0;
/* rgb */ color: rgb(51, 76, 176);
/* oklch */ color: oklch(45.8% 0.162 268.6);
Tailwind
colors: {
  custom: {
    50: '#7b7dc8',
    500: '#334cb0',
    950: '#000000',
  },
}
SCSS
$custom: #334cb0;
$custom-light: #7b7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb0",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 176
  },
  "hsl": {
    "h": 228,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45775,
    "c": 0.16182,
    "h": 268.6
  },
  "luminance": 0.09007
}

Semantic roles & 50–950 ramp

primary
#334CB0
secondary
#C4B67B
accent
#C149DE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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