#334DC1#334DC1

#334DC1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.4% C 0.184 H 268.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#334DC1
RGBrgb(51, 77, 193)
HSLhsl(229, 58%, 48%)
HSVhsv(229, 74%, 76%)
CMYKcmyk(73.6%, 60.1%, 0%, 24.3%)
CIE-LABlab(37.59, 30.79, -63.56)
CIE-LCHlch(37.59, 70.62, 295.85°)
OKLaboklab(47.38% -0.0044 -0.1835)
OKLCHoklch(47.38% 0.184 268.6)
XYZxyz(13.6414, 9.8604, 51.6260)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DC1 #C1A733
analogous
#3394C1 #334DC1 #6033C1
triadic
#334DC1 #C1334D #4DC133
tetradic
#334DC1 #C13394 #C1A733 #33C160
square
#334DC1 #C13394 #C1A733 #33C160
split-complementary
#334DC1 #C16033 #94C133
monochromatic
#192660 #263A91 #334DC1 #5D73D4 #8D9DE1

Accessibility & contrast

On white

7.06
#334DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#334DC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DC1
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DC1#FFFFFF#000000##FFFFFF
##334DC11.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334dc1;
/* rgb */ color: rgb(51, 77, 193);
/* oklch */ color: oklch(47.4% 0.184 268.6);
Tailwind
colors: {
  custom: {
    50: '#7f7ed5',
    500: '#334dc1',
    950: '#000000',
  },
}
SCSS
$custom: #334dc1;
$custom-light: #7f7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#334dc1",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 193
  },
  "hsl": {
    "h": 229.014,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47383,
    "c": 0.18356,
    "h": 268.6
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#334DC1
secondary
#CBBE84
accent
#C546E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #334DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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