#334CBB#334CBB

#334CBB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.177 H 268.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#334CBB
RGBrgb(51, 76, 187)
HSLhsl(229, 57%, 47%)
HSVhsv(229, 73%, 73%)
CMYKcmyk(72.7%, 59.4%, 0%, 26.7%)
CIE-LABlab(36.85, 29.24, -61.25)
CIE-LCHlch(36.85, 67.87, 295.52°)
OKLaboklab(46.69% -0.0038 -0.1767)
OKLCHoklch(46.69% 0.177 268.8)
XYZxyz(12.9162, 9.4592, 48.1492)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CBB #BBA233
analogous
#3390BB #334CBB #5E33BB
triadic
#334CBB #BB334C #4CBB33
tetradic
#334CBB #BB3390 #BBA233 #33BB5E
square
#334CBB #BB3390 #BBA233 #33BB5E
split-complementary
#334CBB #BB5E33 #90BB33
monochromatic
#19255B #26388B #334CBB #5970D2 #8999DF

Accessibility & contrast

On white

7.26
#334CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#334CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CBB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CBB#FFFFFF#000000##FFFFFF
##334CBB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334cbb;
/* rgb */ color: rgb(51, 76, 187);
/* oklch */ color: oklch(46.7% 0.177 268.8);
Tailwind
colors: {
  custom: {
    50: '#7d7dd0',
    500: '#334cbb',
    950: '#000000',
  },
}
SCSS
$custom: #334cbb;
$custom-light: #7d7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#334cbb",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 228.971,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46685,
    "c": 0.17678,
    "h": 268.8
  },
  "luminance": 0.09461
}

Semantic roles & 50–950 ramp

primary
#334CBB
secondary
#C9BC81
accent
#C447E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #334CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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