#334FA0#334FA0

#334FA0 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.135 H 266.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#334FA0
RGBrgb(51, 79, 160)
HSLhsl(225, 52%, 41%)
HSVhsv(225, 68%, 63%)
CMYKcmyk(68.1%, 50.6%, 0%, 37.3%)
CIE-LABlab(35.66, 17.27, -47.15)
CIE-LCHlch(35.66, 50.21, 290.12°)
OKLaboklab(45.16% -0.008 -0.1352)
OKLCHoklch(45.16% 0.135 266.6)
XYZxyz(10.5042, 8.8328, 34.4022)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA0 #A08433
analogous
#3386A0 #334FA0 #4E33A0
triadic
#334FA0 #A0334F #4FA033
tetradic
#334FA0 #A03386 #A08433 #33A04E
square
#334FA0 #A03386 #A08433 #33A04E
split-complementary
#334FA0 #A04E33 #86A033
monochromatic
#152143 #243872 #334FA0 #4B6AC6 #7991D4

Accessibility & contrast

On white

7.59
#334FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334FA0
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA0#FFFFFF#000000##FFFFFF
##334FA01.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A3
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334fa0;
/* rgb */ color: rgb(51, 79, 160);
/* oklch */ color: oklch(45.2% 0.135 266.6);
Tailwind
colors: {
  custom: {
    50: '#777fbd',
    500: '#334fa0',
    950: '#000000',
  },
}
SCSS
$custom: #334fa0;
$custom-light: #777fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa0",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 160
  },
  "hsl": {
    "h": 224.587,
    "s": 51.659,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45155,
    "c": 0.13548,
    "h": 266.6
  },
  "luminance": 0.08834
}

Semantic roles & 50–950 ramp

primary
#334FA0
secondary
#BDAA72
accent
#B74DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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