#334AA1#334AA1

#334AA1 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.143 H 268.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#334AA1
RGBrgb(51, 74, 161)
HSLhsl(227, 52%, 42%)
HSVhsv(227, 68%, 63%)
CMYKcmyk(68.3%, 54%, 0%, 36.9%)
CIE-LABlab(34.34, 20.96, -49.88)
CIE-LCHlch(34.34, 54.11, 292.80°)
OKLaboklab(44.18% -0.0032 -0.1433)
OKLCHoklch(44.18% 0.143 268.7)
XYZxyz(10.2448, 8.1736, 34.7491)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334AA1 #A18A33
analogous
#3381A1 #334AA1 #5333A1
triadic
#334AA1 #A1334A #4AA133
tetradic
#334AA1 #A13381 #A18A33 #33A153
square
#334AA1 #A13381 #A18A33 #33A153
split-complementary
#334AA1 #A15333 #81A133
monochromatic
#161F44 #243573 #334AA1 #4B65C6 #7A8DD5

Accessibility & contrast

On white

7.97
#334AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#334AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334AA1
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334AA1#FFFFFF#000000##FFFFFF
##334AA11.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D56A4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334aa1;
/* rgb */ color: rgb(51, 74, 161);
/* oklch */ color: oklch(44.2% 0.143 268.7);
Tailwind
colors: {
  custom: {
    50: '#787cbd',
    500: '#334aa1',
    950: '#000000',
  },
}
SCSS
$custom: #334aa1;
$custom-light: #787cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#334aa1",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 161
  },
  "hsl": {
    "h": 227.455,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.14339,
    "h": 268.7
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#334AA1
secondary
#BDAE72
accent
#BD4CDB
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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