#334AB1#334AB1

#334AB1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.166 H 269.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#334AB1
RGBrgb(51, 74, 177)
HSLhsl(229, 55%, 45%)
HSVhsv(229, 71%, 69%)
CMYKcmyk(71.2%, 58.2%, 0%, 30.6%)
CIE-LABlab(35.55, 26.88, -57.47)
CIE-LCHlch(35.55, 63.45, 295.06°)
OKLaboklab(45.46% -0.0024 -0.1657)
OKLCHoklch(45.46% 0.166 269.2)
XYZxyz(11.7471, 8.7745, 42.6610)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AB1 #B19A33
analogous
#3389B1 #334AB1 #5B33B1
triadic
#334AB1 #B1334A #4AB133
tetradic
#334AB1 #B13389 #B19A33 #33B15B
square
#334AB1 #B13389 #B19A33 #33B15B
split-complementary
#334AB1 #B15B33 #89B133
monochromatic
#182252 #253681 #334AB1 #546ACE #8393DB

Accessibility & contrast

On white

7.62
#334AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#334AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AB1
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AB1#FFFFFF#000000##FFFFFF
##334AB11.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334ab1;
/* rgb */ color: rgb(51, 74, 177);
/* oklch */ color: oklch(45.5% 0.166 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b7cc9',
    500: '#334ab1',
    950: '#000000',
  },
}
SCSS
$custom: #334ab1;
$custom-light: #7b7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#334ab1",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 177
  },
  "hsl": {
    "h": 229.048,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45463,
    "c": 0.16571,
    "h": 269.2
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#334AB1
secondary
#C5B77B
accent
#C349DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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