#334AB0#334AB0

#334AB0 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.164 H 269.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#334AB0
RGBrgb(51, 74, 176)
HSLhsl(229, 55%, 45%)
HSVhsv(229, 71%, 69%)
CMYKcmyk(71%, 58%, 0%, 31%)
CIE-LABlab(35.47, 26.51, -57.01)
CIE-LCHlch(35.47, 62.87, 294.94°)
OKLaboklab(45.38% -0.0024 -0.1643)
OKLCHoklch(45.38% 0.164 269.2)
XYZxyz(11.6478, 8.7348, 42.1380)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AB0 #B09933
analogous
#3389B0 #334AB0 #5B33B0
triadic
#334AB0 #B0334A #4AB033
tetradic
#334AB0 #B03389 #B09933 #33B05B
square
#334AB0 #B03389 #B09933 #33B05B
split-complementary
#334AB0 #B05B33 #89B033
monochromatic
#182251 #253681 #334AB0 #536ACD #8293DB

Accessibility & contrast

On white

7.64
#334AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#334AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AB0
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AB0#FFFFFF#000000##FFFFFF
##334AB01.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334ab0;
/* rgb */ color: rgb(51, 74, 176);
/* oklch */ color: oklch(45.4% 0.164 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b7cc8',
    500: '#334ab0',
    950: '#000000',
  },
}
SCSS
$custom: #334ab0;
$custom-light: #7b7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334ab0",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 176
  },
  "hsl": {
    "h": 228.96,
    "s": 55.066,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4538,
    "c": 0.16434,
    "h": 269.2
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#334AB0
secondary
#C4B77B
accent
#C349DE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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