#334381#334381

#334381 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.3% C 0.106 H 270.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#334381
RGBrgb(51, 67, 129)
HSLhsl(228, 43%, 35%)
HSVhsv(228, 60%, 51%)
CMYKcmyk(60.5%, 48.1%, 0%, 49.4%)
CIE-LABlab(30.16, 13.88, -37.04)
CIE-LCHlch(30.16, 39.56, 290.54°)
OKLaboklab(40.31% 0.0004 -0.1057)
OKLCHoklch(40.31% 0.106 270.2)
XYZxyz(7.3335, 6.3025, 21.5947)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334381 #817133
analogous
#336A81 #334381 #4A3381
triadic
#334381 #813343 #438133
tetradic
#334381 #81336A #817133 #33814A
square
#334381 #81336A #817133 #33814A
split-complementary
#334381 #814A33 #6A8133
monochromatic
#101529 #222C55 #334381 #445AAD #6A7DC4

Accessibility & contrast

On white

9.29
#334381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#334381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334381
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334381#FFFFFF#000000##FFFFFF
##3343811.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B83
Deuteranopia (green-blind)
#1A4480
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334381;
/* rgb */ color: rgb(51, 67, 129);
/* oklch */ color: oklch(40.3% 0.106 270.2);
Tailwind
colors: {
  custom: {
    50: '#7276a6',
    500: '#334381',
    950: '#000000',
  },
}
SCSS
$custom: #334381;
$custom-light: #7276a6;
$custom-dark: #000000;
JSON
{
  "hex": "#334381",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 129
  },
  "hsl": {
    "h": 227.692,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40305,
    "c": 0.10569,
    "h": 270.2
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#334381
secondary
#AC9D64
accent
#B955D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334381

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

Preview Lab → · Contrast checker → · Palette generator →

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