#334A92#334A92

#334A92 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.1% C 0.122 H 267.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#334A92
RGBrgb(51, 74, 146)
HSLhsl(225, 48%, 39%)
HSVhsv(225, 65%, 57%)
CMYKcmyk(65.1%, 49.3%, 0%, 42.7%)
CIE-LABlab(33.30, 15.41, -42.48)
CIE-LCHlch(33.30, 45.19, 289.94°)
OKLaboklab(43.06% -0.0048 -0.1216)
OKLCHoklch(43.06% 0.122 267.7)
XYZxyz(9.0006, 7.6759, 28.1958)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A92 #927B33
analogous
#337992 #334A92 #4B3392
triadic
#334A92 #92334A #4A9233
tetradic
#334A92 #923379 #927B33 #33924B
square
#334A92 #923379 #927B33 #33924B
split-complementary
#334A92 #924B33 #799233
monochromatic
#131C37 #233365 #334A92 #4462BE #7288CE

Accessibility & contrast

On white

8.28
#334A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#334A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A92
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A92#FFFFFF#000000##FFFFFF
##334A921.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255395
Deuteranopia (green-blind)
#114A91
Tritanopia (blue-blind)
#005B67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334a92;
/* rgb */ color: rgb(51, 74, 146);
/* oklch */ color: oklch(43.1% 0.122 267.7);
Tailwind
colors: {
  custom: {
    50: '#757cb2',
    500: '#334a92',
    950: '#000000',
  },
}
SCSS
$custom: #334a92;
$custom-light: #757cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#334a92",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 146
  },
  "hsl": {
    "h": 225.474,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43055,
    "c": 0.12167,
    "h": 267.7
  },
  "luminance": 0.07677
}

Semantic roles & 50–950 ramp

primary
#334A92
secondary
#B6A46B
accent
#B750D8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334A92

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

Preview Lab → · Contrast checker → · Palette generator →

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