#334FA5#334FA5

#334FA5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.143 H 267.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#334FA5
RGBrgb(51, 79, 165)
HSLhsl(225, 53%, 42%)
HSVhsv(225, 69%, 65%)
CMYKcmyk(69.1%, 52.1%, 0%, 35.3%)
CIE-LABlab(36.01, 19.13, -49.59)
CIE-LCHlch(36.01, 53.15, 291.10°)
OKLaboklab(45.53% -0.0074 -0.1424)
OKLCHoklch(45.53% 0.143 267)
XYZxyz(10.9504, 9.0113, 36.7523)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA5 #A58933
analogous
#3388A5 #334FA5 #5033A5
triadic
#334FA5 #A5334F #4FA533
tetradic
#334FA5 #A53388 #A58933 #33A550
square
#334FA5 #A53388 #A58933 #33A550
split-complementary
#334FA5 #A55033 #88A533
monochromatic
#162248 #253976 #334FA5 #4D6BC8 #7C92D6

Accessibility & contrast

On white

7.49
#334FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#334FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA5
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA5#FFFFFF#000000##FFFFFF
##334FA51.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #334fa5;
/* rgb */ color: rgb(51, 79, 165);
/* oklch */ color: oklch(45.5% 0.143 267.0);
Tailwind
colors: {
  custom: {
    50: '#787fc0',
    500: '#334fa5',
    950: '#000000',
  },
}
SCSS
$custom: #334fa5;
$custom-light: #787fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa5",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 225.263,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45528,
    "c": 0.14261,
    "h": 267
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#334FA5
secondary
#BFAD75
accent
#B94CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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