#334BB1#334BB1

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

Color values

HEX#334BB1
RGBrgb(51, 75, 177)
HSLhsl(229, 55%, 45%)
HSVhsv(229, 71%, 69%)
CMYKcmyk(71.2%, 57.6%, 0%, 30.6%)
CIE-LABlab(35.81, 26.22, -57.05)
CIE-LCHlch(35.81, 62.79, 294.68°)
OKLaboklab(45.66% -0.0032 -0.1644)
OKLCHoklch(45.66% 0.164 268.9)
XYZxyz(11.8144, 8.9091, 42.6834)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BB1 #B19933
analogous
#338AB1 #334BB1 #5A33B1
triadic
#334BB1 #B1334B #4BB133
tetradic
#334BB1 #B1338A #B19933 #33B15A
square
#334BB1 #B1338A #B19933 #33B15A
split-complementary
#334BB1 #B15A33 #8AB133
monochromatic
#182352 #253781 #334BB1 #546BCE #8394DB

Accessibility & contrast

On white

7.55
#334BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#334BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BB1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BB1#FFFFFF#000000##FFFFFF
##334BB11.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334bb1;
/* rgb */ color: rgb(51, 75, 177);
/* oklch */ color: oklch(45.7% 0.164 268.9);
Tailwind
colors: {
  custom: {
    50: '#7b7dc9',
    500: '#334bb1',
    950: '#000000',
  },
}
SCSS
$custom: #334bb1;
$custom-light: #7b7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#334bb1",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 228.571,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45659,
    "c": 0.16445,
    "h": 268.9
  },
  "luminance": 0.0891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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