#334783#334783

#334783 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.103 H 267.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#334783
RGBrgb(51, 71, 131)
HSLhsl(225, 44%, 36%)
HSVhsv(225, 61%, 51%)
CMYKcmyk(61.1%, 45.8%, 0%, 48.6%)
CIE-LABlab(31.46, 11.91, -36.21)
CIE-LCHlch(31.46, 38.12, 288.21°)
OKLaboklab(41.34% -0.0039 -0.1032)
OKLCHoklch(41.34% 0.103 267.8)
XYZxyz(7.7138, 6.8484, 22.3837)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334783 #836F33
analogous
#336F83 #334783 #473383
triadic
#334783 #833347 #478333
tetradic
#334783 #83336F #836F33 #338347
square
#334783 #83336F #836F33 #338347
split-complementary
#334783 #834733 #6F8333
monochromatic
#11172B #222F57 #334783 #445FAF #6B82C5

Accessibility & contrast

On white

8.86
#334783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#334783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334783
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334783#FFFFFF#000000##FFFFFF
##3347831.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4E85
Deuteranopia (green-blind)
#204782
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334783;
/* rgb */ color: rgb(51, 71, 131);
/* oklch */ color: oklch(41.3% 0.103 267.8);
Tailwind
colors: {
  custom: {
    50: '#7279a7',
    500: '#334783',
    950: '#000000',
  },
}
SCSS
$custom: #334783;
$custom-light: #7279a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334783",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 131
  },
  "hsl": {
    "h": 225,
    "s": 43.956,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41337,
    "c": 0.10327,
    "h": 267.8
  },
  "luminance": 0.06849
}

Semantic roles & 50–950 ramp

primary
#334783
secondary
#AD9B65
accent
#B454D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #334783

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

Preview Lab → · Contrast checker → · Palette generator →

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