#304187#304187

#304187 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.1% C 0.118 H 270.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#304187
RGBrgb(48, 65, 135)
HSLhsl(228, 48%, 36%)
HSVhsv(228, 64%, 53%)
CMYKcmyk(64.4%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.81, 16.83, -41.35)
CIE-LCHlch(29.81, 44.65, 292.15°)
OKLaboklab(40.11% 0.0001 -0.1184)
OKLCHoklch(40.11% 0.118 270.1)
XYZxyz(7.4809, 6.1576, 23.7113)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304187 #877630
analogous
#306C87 #304187 #4A3087
triadic
#304187 #873041 #418730
tetradic
#304187 #87306C #877630 #30874A
square
#304187 #87306C #877630 #30874A
split-complementary
#304187 #874A30 #6C8730
monochromatic
#10162D #202B5A #304187 #4057B4 #687BC9

Accessibility & contrast

On white

9.41
#304187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#304187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304187
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304187#FFFFFF#000000##FFFFFF
##3041871.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#044386
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304187;
/* rgb */ color: rgb(48, 65, 135);
/* oklch */ color: oklch(40.1% 0.118 270.1);
Tailwind
colors: {
  custom: {
    50: '#7275aa',
    500: '#304187',
    950: '#000000',
  },
}
SCSS
$custom: #304187;
$custom-light: #7275aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304187",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 228.276,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40114,
    "c": 0.11845,
    "h": 270.1
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#304187
secondary
#B1A162
accent
#BD51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304187

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

Preview Lab → · Contrast checker → · Palette generator →

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