#334BA1#334BA1

#334BA1 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.142 H 268.3°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#334BA1
RGBrgb(51, 75, 161)
HSLhsl(227, 52%, 42%)
HSVhsv(227, 68%, 63%)
CMYKcmyk(68.3%, 53.4%, 0%, 36.9%)
CIE-LABlab(34.62, 20.30, -49.43)
CIE-LCHlch(34.62, 53.44, 292.32°)
OKLaboklab(44.39% -0.0041 -0.142)
OKLCHoklch(44.39% 0.142 268.3)
XYZxyz(10.3121, 8.3082, 34.7715)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BA1 #A18933
analogous
#3382A1 #334BA1 #5233A1
triadic
#334BA1 #A1334B #4BA133
tetradic
#334BA1 #A13382 #A18933 #33A152
square
#334BA1 #A13382 #A18933 #33A152
split-complementary
#334BA1 #A15233 #82A133
monochromatic
#162044 #243573 #334BA1 #4B66C6 #7A8ED5

Accessibility & contrast

On white

7.89
#334BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#334BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BA1
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BA1#FFFFFF#000000##FFFFFF
##334BA11.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334ba1;
/* rgb */ color: rgb(51, 75, 161);
/* oklch */ color: oklch(44.4% 0.142 268.3);
Tailwind
colors: {
  custom: {
    50: '#787cbd',
    500: '#334ba1',
    950: '#000000',
  },
}
SCSS
$custom: #334ba1;
$custom-light: #787cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#334ba1",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 161
  },
  "hsl": {
    "h": 226.909,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44386,
    "c": 0.14209,
    "h": 268.3
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#334BA1
secondary
#BDAD72
accent
#BC4CDB
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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