#334683#334683

#334683 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.1% C 0.105 H 268.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#334683
RGBrgb(51, 70, 131)
HSLhsl(226, 44%, 36%)
HSVhsv(226, 61%, 51%)
CMYKcmyk(61.1%, 46.6%, 0%, 48.6%)
CIE-LABlab(31.17, 12.59, -36.68)
CIE-LCHlch(31.17, 38.78, 288.94°)
OKLaboklab(41.11% -0.0027 -0.1046)
OKLCHoklch(41.11% 0.105 268.5)
XYZxyz(7.6508, 6.7222, 22.3627)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334683 #837033
analogous
#336E83 #334683 #483383
triadic
#334683 #833346 #468333
tetradic
#334683 #83336E #837033 #338348
square
#334683 #83336E #837033 #338348
split-complementary
#334683 #834833 #6E8333
monochromatic
#11172B #222E57 #334683 #445EAF #6B80C5

Accessibility & contrast

On white

8.96
#334683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#334683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334683
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334683#FFFFFF#000000##FFFFFF
##3346831.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D85
Deuteranopia (green-blind)
#1E4682
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334683;
/* rgb */ color: rgb(51, 70, 131);
/* oklch */ color: oklch(41.1% 0.105 268.5);
Tailwind
colors: {
  custom: {
    50: '#7279a7',
    500: '#334683',
    950: '#000000',
  },
}
SCSS
$custom: #334683;
$custom-light: #7279a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334683",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 131
  },
  "hsl": {
    "h": 225.75,
    "s": 43.956,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41112,
    "c": 0.10462,
    "h": 268.5
  },
  "luminance": 0.06723
}

Semantic roles & 50–950 ramp

primary
#334683
secondary
#AD9C65
accent
#B554D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334683

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

Preview Lab → · Contrast checker → · Palette generator →

#334683 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva