#334CB2#334CB2

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

Color values

HEX#334CB2
RGBrgb(51, 76, 178)
HSLhsl(228, 55%, 45%)
HSVhsv(228, 71%, 70%)
CMYKcmyk(71.3%, 57.3%, 0%, 30.2%)
CIE-LABlab(36.15, 25.93, -57.09)
CIE-LCHlch(36.15, 62.70, 294.43°)
OKLaboklab(45.94% -0.004 -0.1645)
OKLCHoklch(45.94% 0.165 268.6)
XYZxyz(11.9828, 9.0858, 43.2331)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB2 #B29933
analogous
#338CB2 #334CB2 #5933B2
triadic
#334CB2 #B2334C #4CB233
tetradic
#334CB2 #B2338C #B29933 #33B259
square
#334CB2 #B2338C #B29933 #33B259
split-complementary
#334CB2 #B25933 #8CB233
monochromatic
#182353 #253882 #334CB2 #546CCE #8495DC

Accessibility & contrast

On white

7.45
#334CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#334CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB2#FFFFFF#000000##FFFFFF
##334CB21.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334cb2;
/* rgb */ color: rgb(51, 76, 178);
/* oklch */ color: oklch(45.9% 0.165 268.6);
Tailwind
colors: {
  custom: {
    50: '#7b7dca',
    500: '#334cb2',
    950: '#000000',
  },
}
SCSS
$custom: #334cb2;
$custom-light: #7b7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb2",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 228.189,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.16457,
    "h": 268.6
  },
  "luminance": 0.09087
}

Semantic roles & 50–950 ramp

primary
#334CB2
secondary
#C5B77C
accent
#C149DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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