#304087#304087

#304087 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.9% C 0.120 H 270.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#304087
RGBrgb(48, 64, 135)
HSLhsl(229, 48%, 36%)
HSVhsv(229, 64%, 53%)
CMYKcmyk(64.4%, 52.6%, 0%, 47.1%)
CIE-LABlab(29.52, 17.51, -41.81)
CIE-LCHlch(29.52, 45.33, 292.73°)
OKLaboklab(39.9% 0.0012 -0.1198)
OKLCHoklch(39.9% 0.12 270.6)
XYZxyz(7.4240, 6.0438, 23.6923)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304087 #877730
analogous
#306B87 #304087 #4B3087
triadic
#304087 #873040 #408730
tetradic
#304087 #87306B #877730 #30874B
square
#304087 #87306B #877730 #30874B
split-complementary
#304087 #874B30 #6B8730
monochromatic
#10152D #202B5A #304087 #4055B4 #687AC9

Accessibility & contrast

On white

9.51
#304087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304087
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304087#FFFFFF#000000##FFFFFF
##3040871.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304087;
/* rgb */ color: rgb(48, 64, 135);
/* oklch */ color: oklch(39.9% 0.120 270.6);
Tailwind
colors: {
  custom: {
    50: '#7274aa',
    500: '#304087',
    950: '#000000',
  },
}
SCSS
$custom: #304087;
$custom-light: #7274aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304087",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 228.966,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.399,
    "c": 0.11982,
    "h": 270.6
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#304087
secondary
#B1A262
accent
#BE51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304087

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

Preview Lab → · Contrast checker → · Palette generator →

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