#334BC1#334BC1

#334BC1 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.0% C 0.186 H 269.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#334BC1
RGBrgb(51, 75, 193)
HSLhsl(230, 58%, 48%)
HSVhsv(230, 74%, 76%)
CMYKcmyk(73.6%, 61.1%, 0%, 24.3%)
CIE-LABlab(37.09, 32.08, -64.38)
CIE-LCHlch(37.09, 71.93, 296.49°)
OKLaboklab(47.01% -0.0031 -0.1859)
OKLCHoklch(47.01% 0.186 269.1)
XYZxyz(13.5036, 9.5848, 51.5801)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BC1 #C1A933
analogous
#3392C1 #334BC1 #6233C1
triadic
#334BC1 #C1334B #4BC133
tetradic
#334BC1 #C13392 #C1A933 #33C162
square
#334BC1 #C13392 #C1A933 #33C162
split-complementary
#334BC1 #C16233 #92C133
monochromatic
#192560 #263891 #334BC1 #5D71D4 #8D9CE1

Accessibility & contrast

On white

7.20
#334BC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#334BC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BC1
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BC1#FFFFFF#000000##FFFFFF
##334BC11.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334bc1;
/* rgb */ color: rgb(51, 75, 193);
/* oklch */ color: oklch(47.0% 0.186 269.1);
Tailwind
colors: {
  custom: {
    50: '#7f7dd5',
    500: '#334bc1',
    950: '#000000',
  },
}
SCSS
$custom: #334bc1;
$custom-light: #7f7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334bc1",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 193
  },
  "hsl": {
    "h": 229.859,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47009,
    "c": 0.18598,
    "h": 269.1
  },
  "luminance": 0.09586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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