#334FAF#334FAF

#334FAF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.157 H 267.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#334FAF
RGBrgb(51, 79, 175)
HSLhsl(226, 55%, 44%)
HSVhsv(226, 71%, 69%)
CMYKcmyk(70.9%, 54.9%, 0%, 31.4%)
CIE-LABlab(36.72, 22.85, -54.38)
CIE-LCHlch(36.72, 58.98, 292.79°)
OKLaboklab(46.3% -0.0066 -0.1565)
OKLCHoklch(46.3% 0.157 267.6)
XYZxyz(11.8964, 9.3897, 41.7346)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FAF #AF9333
analogous
#338DAF #334FAF #5533AF
triadic
#334FAF #AF334F #4FAF33
tetradic
#334FAF #AF338D #AF9333 #33AF55
square
#334FAF #AF338D #AF9333 #33AF55
split-complementary
#334FAF #AF5533 #8DAF33
monochromatic
#172450 #253A80 #334FAF #526ECD #8296DB

Accessibility & contrast

On white

7.30
#334FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#334FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FAF
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FAF#FFFFFF#000000##FFFFFF
##334FAF1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334faf;
/* rgb */ color: rgb(51, 79, 175);
/* oklch */ color: oklch(46.3% 0.157 267.6);
Tailwind
colors: {
  custom: {
    50: '#7b7fc8',
    500: '#334faf',
    950: '#000000',
  },
}
SCSS
$custom: #334faf;
$custom-light: #7b7fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334faf",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 226.452,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46299,
    "c": 0.15665,
    "h": 267.6
  },
  "luminance": 0.09391
}

Semantic roles & 50–950 ramp

primary
#334FAF
secondary
#C4B37A
accent
#BD4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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