#334DA1#334DA1

#334DA1 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.140 H 267.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#334DA1
RGBrgb(51, 77, 161)
HSLhsl(226, 52%, 42%)
HSVhsv(226, 68%, 63%)
CMYKcmyk(68.3%, 52.2%, 0%, 36.9%)
CIE-LABlab(35.17, 18.97, -48.54)
CIE-LCHlch(35.17, 52.12, 291.35°)
OKLaboklab(44.81% -0.006 -0.1394)
OKLCHoklch(44.81% 0.14 267.5)
XYZxyz(10.4499, 8.5838, 34.8174)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DA1 #A18733
analogous
#3384A1 #334DA1 #5033A1
triadic
#334DA1 #A1334D #4DA133
tetradic
#334DA1 #A13384 #A18733 #33A150
square
#334DA1 #A13384 #A18733 #33A150
split-complementary
#334DA1 #A15033 #84A133
monochromatic
#162144 #243773 #334DA1 #4B68C6 #7A8FD5

Accessibility & contrast

On white

7.73
#334DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#334DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DA1
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DA1#FFFFFF#000000##FFFFFF
##334DA11.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A58A4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334da1;
/* rgb */ color: rgb(51, 77, 161);
/* oklch */ color: oklch(44.8% 0.140 267.5);
Tailwind
colors: {
  custom: {
    50: '#787ebd',
    500: '#334da1',
    950: '#000000',
  },
}
SCSS
$custom: #334da1;
$custom-light: #787ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#334da1",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 161
  },
  "hsl": {
    "h": 225.818,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44805,
    "c": 0.1395,
    "h": 267.5
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#334DA1
secondary
#BDAC72
accent
#BA4CDB
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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