#334BC8#334BC8

#334BC8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.6% C 0.195 H 269.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#334BC8
RGBrgb(51, 75, 200)
HSLhsl(230, 59%, 49%)
HSVhsv(230, 75%, 78%)
CMYKcmyk(74.5%, 62.5%, 0%, 21.6%)
CIE-LABlab(37.67, 34.61, -67.50)
CIE-LCHlch(37.67, 75.86, 297.15°)
OKLaboklab(47.62% -0.0032 -0.1951)
OKLCHoklch(47.62% 0.195 269.1)
XYZxyz(14.3031, 9.9046, 55.7903)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BC8 #C8B033
analogous
#3396C8 #334BC8 #6633C8
triadic
#334BC8 #C8334B #4BC833
tetradic
#334BC8 #C83396 #C8B033 #33C866
square
#334BC8 #C83396 #C8B033 #33C866
split-complementary
#334BC8 #C86633 #96C833
monochromatic
#1A2666 #273997 #334BC8 #6174D7 #929FE3

Accessibility & contrast

On white

7.04
#334BC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#334BC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BC8
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BC8#FFFFFF#000000##FFFFFF
##334BC81.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0052C6
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334bc8;
/* rgb */ color: rgb(51, 75, 200);
/* oklch */ color: oklch(47.6% 0.195 269.1);
Tailwind
colors: {
  custom: {
    50: '#807dda',
    500: '#334bc8',
    950: '#000000',
  },
}
SCSS
$custom: #334bc8;
$custom-light: #807dda;
$custom-dark: #000000;
JSON
{
  "hex": "#334bc8",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 200
  },
  "hsl": {
    "h": 230.336,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47622,
    "c": 0.19514,
    "h": 269.1
  },
  "luminance": 0.09906
}

Semantic roles & 50–950 ramp

primary
#334BC8
secondary
#CEC389
accent
#C945E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #334BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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