#304581#304581

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

Color values

HEX#304581
RGBrgb(48, 69, 129)
HSLhsl(224, 46%, 35%)
HSVhsv(224, 63%, 51%)
CMYKcmyk(62.8%, 46.5%, 0%, 49.4%)
CIE-LABlab(30.57, 11.90, -36.41)
CIE-LCHlch(30.57, 38.30, 288.10°)
OKLaboklab(40.56% -0.0051 -0.1039)
OKLCHoklch(40.56% 0.104 267.2)
XYZxyz(7.3081, 6.4690, 21.6281)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304581 #816C30
analogous
#306E81 #304581 #433081
triadic
#304581 #813045 #458130
tetradic
#304581 #81306E #816C30 #308143
square
#304581 #81306E #816C30 #308143
split-complementary
#304581 #814330 #6E8130
monochromatic
#0F1528 #1F2D54 #304581 #415DAE #667EC6

Accessibility & contrast

On white

9.15
#304581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#304581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304581
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304581#FFFFFF#000000##FFFFFF
##3045811.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294C83
Deuteranopia (green-blind)
#1D4580
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304581;
/* rgb */ color: rgb(48, 69, 129);
/* oklch */ color: oklch(40.6% 0.104 267.2);
Tailwind
colors: {
  custom: {
    50: '#7078a6',
    500: '#304581',
    950: '#000000',
  },
}
SCSS
$custom: #304581;
$custom-light: #7078a6;
$custom-dark: #000000;
JSON
{
  "hex": "#304581",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 129
  },
  "hsl": {
    "h": 224.444,
    "s": 45.763,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40564,
    "c": 0.10399,
    "h": 267.2
  },
  "luminance": 0.0647
}

Semantic roles & 50–950 ramp

primary
#304581
secondary
#AD9960
accent
#B352D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #304581

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

Preview Lab → · Contrast checker → · Palette generator →

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