#334B89#334B89

#334B89 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.107 H 266.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#334B89
RGBrgb(51, 75, 137)
HSLhsl(223, 46%, 37%)
HSVhsv(223, 63%, 54%)
CMYKcmyk(62.8%, 45.3%, 0%, 46.3%)
CIE-LABlab(33.01, 11.43, -37.44)
CIE-LCHlch(33.01, 39.14, 286.97°)
OKLaboklab(42.65% -0.0073 -0.1067)
OKLCHoklch(42.65% 0.107 266.1)
XYZxyz(8.3951, 7.5414, 24.6753)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B89 #897133
analogous
#337689 #334B89 #463389
triadic
#334B89 #89334B #4B8933
tetradic
#334B89 #893376 #897133 #338946
square
#334B89 #893376 #897133 #338946
split-complementary
#334B89 #894633 #768933
monochromatic
#121A30 #22335C #334B89 #4463B6 #6E87C9

Accessibility & contrast

On white

8.37
#334B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#334B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B89
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B89#FFFFFF#000000##FFFFFF
##334B891.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528B
Deuteranopia (green-blind)
#224A88
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334b89;
/* rgb */ color: rgb(51, 75, 137);
/* oklch */ color: oklch(42.6% 0.107 266.1);
Tailwind
colors: {
  custom: {
    50: '#737cac',
    500: '#334b89',
    950: '#000000',
  },
}
SCSS
$custom: #334b89;
$custom-light: #737cac;
$custom-dark: #000000;
JSON
{
  "hex": "#334b89",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 137
  },
  "hsl": {
    "h": 223.256,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.10699,
    "h": 266.1
  },
  "luminance": 0.07542
}

Semantic roles & 50–950 ramp

primary
#334B89
secondary
#B19C67
accent
#B152D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334B89

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

Preview Lab → · Contrast checker → · Palette generator →

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