#334085#334085

#334085 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.9% C 0.116 H 272.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#334085
RGBrgb(51, 64, 133)
HSLhsl(230, 45%, 36%)
HSVhsv(230, 62%, 52%)
CMYKcmyk(61.7%, 51.9%, 0%, 47.8%)
CIE-LABlab(29.57, 17.37, -40.48)
CIE-LCHlch(29.57, 44.05, 293.22°)
OKLaboklab(39.94% 0.0043 -0.1158)
OKLCHoklch(39.94% 0.116 272.1)
XYZxyz(7.4309, 6.0635, 22.9645)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334085 #857833
analogous
#336985 #334085 #4F3385
triadic
#334085 #853340 #408533
tetradic
#334085 #853369 #857833 #33854F
square
#334085 #853369 #857833 #33854F
split-complementary
#334085 #854F33 #698533
monochromatic
#11152D #222B59 #334085 #4455B1 #6C7AC7

Accessibility & contrast

On white

9.49
#334085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#334085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334085
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334085#FFFFFF#000000##FFFFFF
##3340851.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4987
Deuteranopia (green-blind)
#094284
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334085;
/* rgb */ color: rgb(51, 64, 133);
/* oklch */ color: oklch(39.9% 0.116 272.1);
Tailwind
colors: {
  custom: {
    50: '#7374a9',
    500: '#334085',
    950: '#000000',
  },
}
SCSS
$custom: #334085;
$custom-light: #7374a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334085",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 133
  },
  "hsl": {
    "h": 230.488,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39942,
    "c": 0.1159,
    "h": 272.1
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#334085
secondary
#AEA365
accent
#C054D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334085

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

Preview Lab → · Contrast checker → · Palette generator →

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