#334AC1#334AC1

#334AC1 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.187 H 269.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#334AC1
RGBrgb(51, 74, 193)
HSLhsl(230, 58%, 48%)
HSVhsv(230, 74%, 76%)
CMYKcmyk(73.6%, 61.7%, 0%, 24.3%)
CIE-LABlab(36.84, 32.72, -64.79)
CIE-LCHlch(36.84, 72.58, 296.80°)
OKLaboklab(46.82% -0.0024 -0.1872)
OKLCHoklch(46.82% 0.187 269.3)
XYZxyz(13.4363, 9.4502, 51.5577)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AC1 #C1AA33
analogous
#3391C1 #334AC1 #6333C1
triadic
#334AC1 #C1334A #4AC133
tetradic
#334AC1 #C13391 #C1AA33 #33C163
square
#334AC1 #C13391 #C1AA33 #33C163
split-complementary
#334AC1 #C16333 #91C133
monochromatic
#192560 #263791 #334AC1 #5D70D4 #8D9BE1

Accessibility & contrast

On white

7.27
#334AC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#334AC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AC1
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AC1#FFFFFF#000000##FFFFFF
##334AC11.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC5
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00697E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334ac1;
/* rgb */ color: rgb(51, 74, 193);
/* oklch */ color: oklch(46.8% 0.187 269.3);
Tailwind
colors: {
  custom: {
    50: '#7f7cd5',
    500: '#334ac1',
    950: '#000000',
  },
}
SCSS
$custom: #334ac1;
$custom-light: #7f7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#334ac1",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 193
  },
  "hsl": {
    "h": 230.282,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46824,
    "c": 0.18718,
    "h": 269.3
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#334AC1
secondary
#CBC084
accent
#C846E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #334AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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