#334181#334181

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

Color values

HEX#334181
RGBrgb(51, 65, 129)
HSLhsl(229, 43%, 35%)
HSVhsv(229, 60%, 51%)
CMYKcmyk(60.5%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.59, 15.24, -37.97)
CIE-LCHlch(29.59, 40.91, 291.86°)
OKLaboklab(39.87% 0.0027 -0.1084)
OKLCHoklch(39.87% 0.108 271.4)
XYZxyz(7.2167, 6.0688, 21.5557)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334181 #817333
analogous
#336881 #334181 #4C3381
triadic
#334181 #813341 #418133
tetradic
#334181 #813368 #817333 #33814C
square
#334181 #813368 #817333 #33814C
split-complementary
#334181 #814C33 #688133
monochromatic
#101529 #222B55 #334181 #4457AD #6A7AC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334181#FFFFFF#000000##FFFFFF
##3341811.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)
#224983
Deuteranopia (green-blind)
#154280
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334181;
/* rgb */ color: rgb(51, 65, 129);
/* oklch */ color: oklch(39.9% 0.108 271.4);
Tailwind
colors: {
  custom: {
    50: '#7275a6',
    500: '#334181',
    950: '#000000',
  },
}
SCSS
$custom: #334181;
$custom-light: #7275a6;
$custom-dark: #000000;
JSON
{
  "hex": "#334181",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 229.231,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39865,
    "c": 0.10846,
    "h": 271.4
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#334181
secondary
#AC9F64
accent
#BC55D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334181

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

Preview Lab → · Contrast checker → · Palette generator →

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