#334A93#334A93

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

Color values

HEX#334A93
RGBrgb(51, 74, 147)
HSLhsl(226, 48%, 39%)
HSVhsv(226, 65%, 58%)
CMYKcmyk(65.3%, 49.7%, 0%, 42.4%)
CIE-LABlab(33.37, 15.78, -42.98)
CIE-LCHlch(33.37, 45.79, 290.16°)
OKLaboklab(43.13% -0.0047 -0.1231)
OKLCHoklch(43.13% 0.123 267.8)
XYZxyz(9.0787, 7.7071, 28.6073)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A93 #937C33
analogous
#337A93 #334A93 #4C3393
triadic
#334A93 #93334A #4A9333
tetradic
#334A93 #93337A #937C33 #33934C
square
#334A93 #93337A #937C33 #33934C
split-complementary
#334A93 #934C33 #7A9333
monochromatic
#131C38 #233366 #334A93 #4562BE #7288CE

Accessibility & contrast

On white

8.26
#334A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334A93
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A93#FFFFFF#000000##FFFFFF
##334A931.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245396
Deuteranopia (green-blind)
#0E4A91
Tritanopia (blue-blind)
#005B67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334a93;
/* rgb */ color: rgb(51, 74, 147);
/* oklch */ color: oklch(43.1% 0.123 267.8);
Tailwind
colors: {
  custom: {
    50: '#757cb3',
    500: '#334a93',
    950: '#000000',
  },
}
SCSS
$custom: #334a93;
$custom-light: #757cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#334a93",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 147
  },
  "hsl": {
    "h": 225.625,
    "s": 48.485,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43127,
    "c": 0.12315,
    "h": 267.8
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334A93

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

Preview Lab → · Contrast checker → · Palette generator →

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