#334088#334088

#334088 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.120 H 272.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#334088
RGBrgb(51, 64, 136)
HSLhsl(231, 45%, 37%)
HSVhsv(231, 63%, 53%)
CMYKcmyk(62.5%, 52.9%, 0%, 46.7%)
CIE-LABlab(29.78, 18.46, -42.00)
CIE-LCHlch(29.78, 45.88, 293.73°)
OKLaboklab(40.17% 0.0046 -0.1203)
OKLCHoklch(40.17% 0.12 272.2)
XYZxyz(7.6411, 6.1476, 24.0717)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334088 #887B33
analogous
#336B88 #334088 #513388
triadic
#334088 #883340 #408833
tetradic
#334088 #88336B #887B33 #338851
square
#334088 #88336B #887B33 #338851
split-complementary
#334088 #885133 #6B8833
monochromatic
#12162F #222B5B #334088 #4455B5 #6D7BC8

Accessibility & contrast

On white

9.42
#334088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#334088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334088
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334088#FFFFFF#000000##FFFFFF
##3340881.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8B
Deuteranopia (green-blind)
#014387
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334088;
/* rgb */ color: rgb(51, 64, 136);
/* oklch */ color: oklch(40.2% 0.120 272.2);
Tailwind
colors: {
  custom: {
    50: '#7374ab',
    500: '#334088',
    950: '#000000',
  },
}
SCSS
$custom: #334088;
$custom-light: #7374ab;
$custom-dark: #000000;
JSON
{
  "hex": "#334088",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 136
  },
  "hsl": {
    "h": 230.824,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40168,
    "c": 0.12039,
    "h": 272.2
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#334088
secondary
#B0A567
accent
#C153D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334088

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

Preview Lab → · Contrast checker → · Palette generator →

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