#334368#334368

#334368 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.7% C 0.067 H 265.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#334368
RGBrgb(51, 67, 104)
HSLhsl(222, 34%, 30%)
HSVhsv(222, 51%, 41%)
CMYKcmyk(51%, 35.6%, 0%, 59.2%)
CIE-LABlab(28.69, 5.02, -23.63)
CIE-LCHlch(28.69, 24.16, 282.00°)
OKLaboklab(38.69% -0.0051 -0.0665)
OKLCHoklch(38.69% 0.067 265.6)
XYZxyz(5.8703, 5.7172, 13.8882)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334368 #685833
analogous
#335D68 #334368 #3D3368
triadic
#334368 #683343 #436833
tetradic
#334368 #68335D #685833 #33683D
square
#334368 #68335D #685833 #33683D
split-complementary
#334368 #683D33 #5D6833
monochromatic
#0B0E16 #1F293F #334368 #475D91 #637BB2

Accessibility & contrast

On white

9.80
#334368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#334368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334368
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334368#FFFFFF#000000##FFFFFF
##3343681.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35466A
Deuteranopia (green-blind)
#2F4167
Tritanopia (blue-blind)
#1D4B50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334368;
/* rgb */ color: rgb(51, 67, 104);
/* oklch */ color: oklch(38.7% 0.067 265.6);
Tailwind
colors: {
  custom: {
    50: '#6e7693',
    500: '#334368',
    950: '#000000',
  },
}
SCSS
$custom: #334368;
$custom-light: #6e7693;
$custom-dark: #000000;
JSON
{
  "hex": "#334368",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 104
  },
  "hsl": {
    "h": 221.887,
    "s": 34.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3869,
    "c": 0.06666,
    "h": 265.6
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#334368
secondary
#99875E
accent
#A95ECA
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #334368

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

Preview Lab → · Contrast checker → · Palette generator →

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