#334FA1#334FA1

#334FA1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.137 H 266.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#334FA1
RGBrgb(51, 79, 161)
HSLhsl(225, 52%, 42%)
HSVhsv(225, 68%, 63%)
CMYKcmyk(68.3%, 50.9%, 0%, 36.9%)
CIE-LABlab(35.73, 17.64, -47.64)
CIE-LCHlch(35.73, 50.80, 290.32°)
OKLaboklab(45.23% -0.0079 -0.1367)
OKLCHoklch(45.23% 0.137 266.7)
XYZxyz(10.5920, 8.8680, 34.8648)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA1 #A18533
analogous
#3386A1 #334FA1 #4E33A1
triadic
#334FA1 #A1334F #4FA133
tetradic
#334FA1 #A13386 #A18533 #33A14E
square
#334FA1 #A13386 #A18533 #33A14E
split-complementary
#334FA1 #A14E33 #86A133
monochromatic
#162144 #243873 #334FA1 #4B6AC6 #7A91D5

Accessibility & contrast

On white

7.57
#334FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#334FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA1
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA1#FFFFFF#000000##FFFFFF
##334FA11.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2059A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334fa1;
/* rgb */ color: rgb(51, 79, 161);
/* oklch */ color: oklch(45.2% 0.137 266.7);
Tailwind
colors: {
  custom: {
    50: '#787fbd',
    500: '#334fa1',
    950: '#000000',
  },
}
SCSS
$custom: #334fa1;
$custom-light: #787fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa1",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 224.727,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45229,
    "c": 0.13691,
    "h": 266.7
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#334FA1
secondary
#BDAA72
accent
#B74CDB
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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