#334062#334062

#334062 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.6% C 0.061 H 267.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#334062
RGBrgb(51, 64, 98)
HSLhsl(223, 32%, 29%)
HSVhsv(223, 48%, 38%)
CMYKcmyk(48%, 34.7%, 0%, 61.6%)
CIE-LABlab(27.44, 5.00, -21.74)
CIE-LCHlch(27.44, 22.30, 282.95°)
OKLaboklab(37.62% -0.0027 -0.061)
OKLCHoklch(37.62% 0.061 267.5)
XYZxyz(5.4025, 5.2521, 12.2820)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334062 #625533
analogous
#335862 #334062 #3E3362
triadic
#334062 #623340 #406233
tetradic
#334062 #623358 #625533 #33623E
square
#334062 #623358 #625533 #33623E
split-complementary
#334062 #623E33 #586233
monochromatic
#0A0D14 #1E263A #334062 #485A8A #6277AD

Accessibility & contrast

On white

10.24
#334062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#334062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334062
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334062#FFFFFF#000000##FFFFFF
##3340621.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344363
Deuteranopia (green-blind)
#2F3F61
Tritanopia (blue-blind)
#22474C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334062;
/* rgb */ color: rgb(51, 64, 98);
/* oklch */ color: oklch(37.6% 0.061 267.5);
Tailwind
colors: {
  custom: {
    50: '#6d748f',
    500: '#334062',
    950: '#000000',
  },
}
SCSS
$custom: #334062;
$custom-light: #6d748f;
$custom-dark: #000000;
JSON
{
  "hex": "#334062",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 98
  },
  "hsl": {
    "h": 223.404,
    "s": 31.544,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.06104,
    "h": 267.5
  },
  "luminance": 0.05252
}

Semantic roles & 50–950 ramp

primary
#334062
secondary
#93845E
accent
#AB60C8
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #334062

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

Preview Lab → · Contrast checker → · Palette generator →

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