#334DA7#334DA7

#334DA7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.148 H 267.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#334DA7
RGBrgb(51, 77, 167)
HSLhsl(227, 53%, 43%)
HSVhsv(227, 69%, 65%)
CMYKcmyk(69.5%, 53.9%, 0%, 34.5%)
CIE-LABlab(35.60, 21.20, -51.44)
CIE-LCHlch(35.60, 55.64, 292.40°)
OKLaboklab(45.26% -0.0054 -0.1479)
OKLCHoklch(45.26% 0.148 267.9)
XYZxyz(10.9918, 8.8005, 37.6711)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334DA7 #A78D33
analogous
#3387A7 #334DA7 #5333A7
triadic
#334DA7 #A7334D #4DA733
tetradic
#334DA7 #A73387 #A78D33 #33A753
square
#334DA7 #A73387 #A78D33 #33A753
split-complementary
#334DA7 #A75333 #87A733
monochromatic
#162249 #253778 #334DA7 #4E6AC9 #7D91D7

Accessibility & contrast

On white

7.61
#334DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#334DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334DA7
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334DA7#FFFFFF#000000##FFFFFF
##334DA71.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59AA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334da7;
/* rgb */ color: rgb(51, 77, 167);
/* oklch */ color: oklch(45.3% 0.148 267.9);
Tailwind
colors: {
  custom: {
    50: '#797ec2',
    500: '#334da7',
    950: '#000000',
  },
}
SCSS
$custom: #334da7;
$custom-light: #797ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#334da7",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 226.552,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45264,
    "c": 0.14801,
    "h": 267.9
  },
  "luminance": 0.08802
}

Semantic roles & 50–950 ramp

primary
#334DA7
secondary
#C0AF76
accent
#BC4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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