#334CB3#334CB3

#334CB3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.166 H 268.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#334CB3
RGBrgb(51, 76, 179)
HSLhsl(228, 56%, 45%)
HSVhsv(228, 72%, 70%)
CMYKcmyk(71.5%, 57.5%, 0%, 29.8%)
CIE-LABlab(36.23, 26.30, -57.55)
CIE-LCHlch(36.23, 63.28, 294.56°)
OKLaboklab(46.02% -0.0039 -0.1659)
OKLCHoklch(46.02% 0.166 268.6)
XYZxyz(12.0836, 9.1261, 43.7638)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB3 #B39A33
analogous
#338CB3 #334CB3 #5A33B3
triadic
#334CB3 #B3334C #4CB333
tetradic
#334CB3 #B3338C #B39A33 #33B35A
square
#334CB3 #B3338C #B39A33 #33B35A
split-complementary
#334CB3 #B35A33 #8CB333
monochromatic
#182454 #253883 #334CB3 #556CCE #8495DC

Accessibility & contrast

On white

7.43
#334CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#334CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB3#FFFFFF#000000##FFFFFF
##334CB31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334cb3;
/* rgb */ color: rgb(51, 76, 179);
/* oklch */ color: oklch(46.0% 0.166 268.6);
Tailwind
colors: {
  custom: {
    50: '#7c7dcb',
    500: '#334cb3',
    950: '#000000',
  },
}
SCSS
$custom: #334cb3;
$custom-light: #7c7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb3",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 228.281,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4602,
    "c": 0.16594,
    "h": 268.6
  },
  "luminance": 0.09127
}

Semantic roles & 50–950 ramp

primary
#334CB3
secondary
#C6B77C
accent
#C249DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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