#304586#304586

#304586 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.9% C 0.112 H 267.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#304586
RGBrgb(48, 69, 134)
HSLhsl(225, 47%, 36%)
HSVhsv(225, 64%, 53%)
CMYKcmyk(64.2%, 48.5%, 0%, 47.5%)
CIE-LABlab(30.89, 13.75, -38.99)
CIE-LCHlch(30.89, 41.34, 289.43°)
OKLaboklab(40.92% -0.0043 -0.1114)
OKLCHoklch(40.92% 0.112 267.8)
XYZxyz(7.6487, 6.6052, 23.4215)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304586 #867130
analogous
#307086 #304586 #463086
triadic
#304586 #863045 #458630
tetradic
#304586 #863070 #867130 #308646
square
#304586 #863070 #867130 #308646
split-complementary
#304586 #864630 #708630
monochromatic
#10172C #202E59 #304586 #405CB3 #687FC9

Accessibility & contrast

On white

9.05
#304586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304586
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304586#FFFFFF#000000##FFFFFF
##3045861.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D88
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304586;
/* rgb */ color: rgb(48, 69, 134);
/* oklch */ color: oklch(40.9% 0.112 267.8);
Tailwind
colors: {
  custom: {
    50: '#7178aa',
    500: '#304586',
    950: '#000000',
  },
}
SCSS
$custom: #304586;
$custom-light: #7178aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304586",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 134
  },
  "hsl": {
    "h": 225.349,
    "s": 47.253,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40917,
    "c": 0.11153,
    "h": 267.8
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304586

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

Preview Lab → · Contrast checker → · Palette generator →

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