#334CB1#334CB1

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

Color values

HEX#334CB1
RGBrgb(51, 76, 177)
HSLhsl(228, 55%, 45%)
HSVhsv(228, 71%, 69%)
CMYKcmyk(71.2%, 57.1%, 0%, 30.6%)
CIE-LABlab(36.07, 25.56, -56.62)
CIE-LCHlch(36.07, 62.12, 294.30°)
OKLaboklab(45.86% -0.004 -0.1631)
OKLCHoklch(45.86% 0.163 268.6)
XYZxyz(11.8828, 9.0458, 42.7062)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CB1 #B19833
analogous
#338BB1 #334CB1 #5933B1
triadic
#334CB1 #B1334C #4CB133
tetradic
#334CB1 #B1338B #B19833 #33B159
square
#334CB1 #B1338B #B19833 #33B159
split-complementary
#334CB1 #B15933 #8BB133
monochromatic
#182352 #253881 #334CB1 #546CCE #8395DB

Accessibility & contrast

On white

7.47
#334CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#334CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CB1
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CB1#FFFFFF#000000##FFFFFF
##334CB11.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334cb1;
/* rgb */ color: rgb(51, 76, 177);
/* oklch */ color: oklch(45.9% 0.163 268.6);
Tailwind
colors: {
  custom: {
    50: '#7b7dc9',
    500: '#334cb1',
    950: '#000000',
  },
}
SCSS
$custom: #334cb1;
$custom-light: #7b7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#334cb1",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 228.095,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45856,
    "c": 0.1632,
    "h": 268.6
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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