#334BB0#334BB0

#334BB0 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.163 H 268.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#334BB0
RGBrgb(51, 75, 176)
HSLhsl(228, 55%, 45%)
HSVhsv(228, 71%, 69%)
CMYKcmyk(71%, 57.4%, 0%, 31%)
CIE-LABlab(35.73, 25.85, -56.58)
CIE-LCHlch(35.73, 62.21, 294.55°)
OKLaboklab(45.58% -0.0032 -0.163)
OKLCHoklch(45.58% 0.163 268.9)
XYZxyz(11.7151, 8.8694, 42.1604)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB0 #B09833
analogous
#338AB0 #334BB0 #5A33B0
triadic
#334BB0 #B0334B #4BB033
tetradic
#334BB0 #B0338A #B09833 #33B05A
square
#334BB0 #B0338A #B09833 #33B05A
split-complementary
#334BB0 #B05A33 #8AB033
monochromatic
#182351 #253781 #334BB0 #536ACD #8293DB

Accessibility & contrast

On white

7.57
#334BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#334BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB0
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB0#FFFFFF#000000##FFFFFF
##334BB01.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334bb0;
/* rgb */ color: rgb(51, 75, 176);
/* oklch */ color: oklch(45.6% 0.163 268.9);
Tailwind
colors: {
  custom: {
    50: '#7b7dc8',
    500: '#334bb0',
    950: '#000000',
  },
}
SCSS
$custom: #334bb0;
$custom-light: #7b7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb0",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 176
  },
  "hsl": {
    "h": 228.48,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45577,
    "c": 0.16308,
    "h": 268.9
  },
  "luminance": 0.08871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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