#304585#304585

#304585 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.110 H 267.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#304585
RGBrgb(48, 69, 133)
HSLhsl(225, 47%, 35%)
HSVhsv(225, 64%, 52%)
CMYKcmyk(63.9%, 48.1%, 0%, 47.8%)
CIE-LABlab(30.82, 13.38, -38.48)
CIE-LCHlch(30.82, 40.74, 289.18°)
OKLaboklab(40.85% -0.0044 -0.1099)
OKLCHoklch(40.85% 0.11 267.7)
XYZxyz(7.5792, 6.5774, 23.0559)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304585 #857030
analogous
#306F85 #304585 #453085
triadic
#304585 #853045 #458530
tetradic
#304585 #85306F #857030 #308545
square
#304585 #85306F #857030 #308545
split-complementary
#304585 #854530 #6F8530
monochromatic
#10162B #202E58 #304585 #405CB2 #677FC8

Accessibility & contrast

On white

9.07
#304585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#304585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304585
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304585#FFFFFF#000000##FFFFFF
##3045851.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D87
Deuteranopia (green-blind)
#174584
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304585;
/* rgb */ color: rgb(48, 69, 133);
/* oklch */ color: oklch(40.8% 0.110 267.7);
Tailwind
colors: {
  custom: {
    50: '#7178a9',
    500: '#304585',
    950: '#000000',
  },
}
SCSS
$custom: #304585;
$custom-light: #7178a9;
$custom-dark: #000000;
JSON
{
  "hex": "#304585",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 133
  },
  "hsl": {
    "h": 225.176,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40846,
    "c": 0.11003,
    "h": 267.7
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#304585
secondary
#AF9C61
accent
#B651D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304585

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

Preview Lab → · Contrast checker → · Palette generator →

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