#334BBF#334BBF

#334BBF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.183 H 269.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#334BBF
RGBrgb(51, 75, 191)
HSLhsl(230, 58%, 47%)
HSVhsv(230, 73%, 75%)
CMYKcmyk(73.3%, 60.7%, 0%, 25.1%)
CIE-LABlab(36.92, 31.35, -63.48)
CIE-LCHlch(36.92, 70.80, 296.28°)
OKLaboklab(46.84% -0.003 -0.1833)
OKLCHoklch(46.84% 0.183 269.1)
XYZxyz(13.2821, 9.4962, 50.4131)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BBF #BFA733
analogous
#3391BF #334BBF #6133BF
triadic
#334BBF #BF334B #4BBF33
tetradic
#334BBF #BF3391 #BFA733 #33BF61
square
#334BBF #BF3391 #BFA733 #33BF61
split-complementary
#334BBF #BF6133 #91BF33
monochromatic
#19255E #26388F #334BBF #5C70D3 #8C9BE0

Accessibility & contrast

On white

7.24
#334BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#334BBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BBF
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BBF#FFFFFF#000000##FFFFFF
##334BBF1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#00687E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334bbf;
/* rgb */ color: rgb(51, 75, 191);
/* oklch */ color: oklch(46.8% 0.183 269.1);
Tailwind
colors: {
  custom: {
    50: '#7e7dd3',
    500: '#334bbf',
    950: '#000000',
  },
}
SCSS
$custom: #334bbf;
$custom-light: #7e7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#334bbf",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 191
  },
  "hsl": {
    "h": 229.714,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46837,
    "c": 0.18334,
    "h": 269.1
  },
  "luminance": 0.09498
}

Semantic roles & 50–950 ramp

primary
#334BBF
secondary
#CBBE83
accent
#C747E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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