#334FA2#334FA2

#334FA2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.138 H 266.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#334FA2
RGBrgb(51, 79, 162)
HSLhsl(225, 52%, 42%)
HSVhsv(225, 69%, 64%)
CMYKcmyk(68.5%, 51.2%, 0%, 36.5%)
CIE-LABlab(35.80, 18.01, -48.13)
CIE-LCHlch(35.80, 51.39, 290.52°)
OKLaboklab(45.3% -0.0077 -0.1381)
OKLCHoklch(45.3% 0.138 266.8)
XYZxyz(10.6806, 8.9034, 35.3311)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334FA2 #A28633
analogous
#3387A2 #334FA2 #4F33A2
triadic
#334FA2 #A2334F #4FA233
tetradic
#334FA2 #A23387 #A28633 #33A24F
square
#334FA2 #A23387 #A28633 #33A24F
split-complementary
#334FA2 #A24F33 #87A233
monochromatic
#162245 #243873 #334FA2 #4C6BC7 #7A91D5

Accessibility & contrast

On white

7.55
#334FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#334FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334FA2
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334FA2#FFFFFF#000000##FFFFFF
##334FA21.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5AA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334fa2;
/* rgb */ color: rgb(51, 79, 162);
/* oklch */ color: oklch(45.3% 0.138 266.8);
Tailwind
colors: {
  custom: {
    50: '#787fbe',
    500: '#334fa2',
    950: '#000000',
  },
}
SCSS
$custom: #334fa2;
$custom-light: #787fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#334fa2",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 224.865,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45303,
    "c": 0.13834,
    "h": 266.8
  },
  "luminance": 0.08904
}

Semantic roles & 50–950 ramp

primary
#334FA2
secondary
#BEAB73
accent
#B74CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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