#334165#334165

#334165 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.065 H 267.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#334165
RGBrgb(51, 65, 101)
HSLhsl(223, 33%, 30%)
HSVhsv(223, 50%, 40%)
CMYKcmyk(49.5%, 35.6%, 0%, 60.4%)
CIE-LABlab(27.91, 5.34, -22.93)
CIE-LCHlch(27.91, 23.54, 283.11°)
OKLaboklab(38.03% -0.0032 -0.0644)
OKLCHoklch(38.03% 0.065 267.2)
XYZxyz(5.6037, 5.4236, 13.0610)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334165 #655733
analogous
#335A65 #334165 #3E3365
triadic
#334165 #653341 #416533
tetradic
#334165 #65335A #655733 #33653E
square
#334165 #65335A #655733 #33653E
split-complementary
#334165 #653E33 #5A6533
monochromatic
#0A0D14 #1E273C #334165 #485B8E #6278B0

Accessibility & contrast

On white

10.07
#334165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#334165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334165
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334165#FFFFFF#000000##FFFFFF
##3341651.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344466
Deuteranopia (green-blind)
#2F4064
Tritanopia (blue-blind)
#20494E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334165;
/* rgb */ color: rgb(51, 65, 101);
/* oklch */ color: oklch(38.0% 0.065 267.2);
Tailwind
colors: {
  custom: {
    50: '#6e7591',
    500: '#334165',
    950: '#000000',
  },
}
SCSS
$custom: #334165;
$custom-light: #6e7591;
$custom-dark: #000000;
JSON
{
  "hex": "#334165",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 101
  },
  "hsl": {
    "h": 223.2,
    "s": 32.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38034,
    "c": 0.06452,
    "h": 267.2
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#334165
secondary
#96865E
accent
#AB5FC9
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #334165

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

Preview Lab → · Contrast checker → · Palette generator →

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