#334CBE#334CBE

#334CBE is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.181 H 268.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#334CBE
RGBrgb(51, 76, 190)
HSLhsl(229, 58%, 47%)
HSVhsv(229, 73%, 75%)
CMYKcmyk(73.2%, 60%, 0%, 25.5%)
CIE-LABlab(37.09, 30.34, -62.61)
CIE-LCHlch(37.09, 69.58, 295.85°)
OKLaboklab(46.94% -0.0037 -0.1807)
OKLCHoklch(46.94% 0.181 268.8)
XYZxyz(13.2407, 9.5890, 49.8583)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CBE #BEA533
analogous
#3391BE #334CBE #6033BE
triadic
#334CBE #BE334C #4CBE33
tetradic
#334CBE #BE3391 #BEA533 #33BE60
square
#334CBE #BE3391 #BEA533 #33BE60
split-complementary
#334CBE #BE6033 #91BE33
monochromatic
#19255E #26398E #334CBE #5B71D3 #8B9BE0

Accessibility & contrast

On white

7.20
#334CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#334CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CBE
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CBE#FFFFFF#000000##FFFFFF
##334CBE1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334cbe;
/* rgb */ color: rgb(51, 76, 190);
/* oklch */ color: oklch(46.9% 0.181 268.8);
Tailwind
colors: {
  custom: {
    50: '#7e7dd2',
    500: '#334cbe',
    950: '#000000',
  },
}
SCSS
$custom: #334cbe;
$custom-light: #7e7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#334cbe",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 229.209,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46939,
    "c": 0.18079,
    "h": 268.8
  },
  "luminance": 0.0959
}

Semantic roles & 50–950 ramp

primary
#334CBE
secondary
#CABD83
accent
#C547E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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