#334DC8#334DC8

#334DC8 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.193 H 268.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#334DC8
RGBrgb(51, 77, 200)
HSLhsl(230, 59%, 49%)
HSVhsv(230, 75%, 78%)
CMYKcmyk(74.5%, 61.5%, 0%, 21.6%)
CIE-LABlab(38.16, 33.34, -66.70)
CIE-LCHlch(38.16, 74.57, 296.56°)
OKLaboklab(47.99% -0.0045 -0.1927)
OKLCHoklch(47.99% 0.193 268.7)
XYZxyz(14.4408, 10.1801, 55.8363)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DC8 #C8AE33
analogous
#3398C8 #334DC8 #6333C8
triadic
#334DC8 #C8334D #4DC833
tetradic
#334DC8 #C83398 #C8AE33 #33C863
square
#334DC8 #C83398 #C8AE33 #33C863
split-complementary
#334DC8 #C86333 #98C833
monochromatic
#1A2766 #273A97 #334DC8 #6176D7 #92A0E3

Accessibility & contrast

On white

6.92
#334DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#334DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334DC8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DC8#FFFFFF#000000##FFFFFF
##334DC81.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0053C6
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #334dc8;
/* rgb */ color: rgb(51, 77, 200);
/* oklch */ color: oklch(48.0% 0.193 268.7);
Tailwind
colors: {
  custom: {
    50: '#807eda',
    500: '#334dc8',
    950: '#000000',
  },
}
SCSS
$custom: #334dc8;
$custom-light: #807eda;
$custom-dark: #000000;
JSON
{
  "hex": "#334dc8",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 229.53,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47986,
    "c": 0.19278,
    "h": 268.7
  },
  "luminance": 0.10182
}

Semantic roles & 50–950 ramp

primary
#334DC8
secondary
#CEC289
accent
#C745E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #334DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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