#334CC1#334CC1

#334CC1 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.2% C 0.185 H 268.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#334CC1
RGBrgb(51, 76, 193)
HSLhsl(229, 58%, 48%)
HSVhsv(229, 74%, 76%)
CMYKcmyk(73.6%, 60.6%, 0%, 24.3%)
CIE-LABlab(37.34, 31.43, -63.97)
CIE-LCHlch(37.34, 71.28, 296.17°)
OKLaboklab(47.2% -0.0037 -0.1847)
OKLCHoklch(47.2% 0.185 268.8)
XYZxyz(13.5720, 9.7215, 51.6029)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CC1 #C1A833
analogous
#3393C1 #334CC1 #6133C1
triadic
#334CC1 #C1334C #4CC133
tetradic
#334CC1 #C13393 #C1A833 #33C161
square
#334CC1 #C13393 #C1A833 #33C161
split-complementary
#334CC1 #C16133 #93C133
monochromatic
#192660 #263991 #334CC1 #5D72D4 #8D9CE1

Accessibility & contrast

On white

7.13
#334CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#334CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CC1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CC1#FFFFFF#000000##FFFFFF
##334CC11.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #334cc1;
/* rgb */ color: rgb(51, 76, 193);
/* oklch */ color: oklch(47.2% 0.185 268.8);
Tailwind
colors: {
  custom: {
    50: '#7f7dd5',
    500: '#334cc1',
    950: '#000000',
  },
}
SCSS
$custom: #334cc1;
$custom-light: #7f7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334cc1",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 193
  },
  "hsl": {
    "h": 229.437,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47196,
    "c": 0.18478,
    "h": 268.8
  },
  "luminance": 0.09723
}

Semantic roles & 50–950 ramp

primary
#334CC1
secondary
#CBBF84
accent
#C646E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #334CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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