#304875#304875

#304875 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.082 H 262.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#304875
RGBrgb(48, 72, 117)
HSLhsl(219, 42%, 32%)
HSVhsv(219, 59%, 46%)
CMYKcmyk(59%, 38.5%, 0%, 54.1%)
CIE-LABlab(30.75, 5.50, -28.62)
CIE-LCHlch(30.75, 29.14, 280.88°)
OKLaboklab(40.47% -0.0113 -0.081)
OKLCHoklch(40.47% 0.082 262.1)
XYZxyz(6.7461, 6.5469, 17.7344)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304875 #755D30
analogous
#306B75 #304875 #3A3075
triadic
#304875 #753048 #487530
tetradic
#304875 #75306B #755D30 #30753A
square
#304875 #75306B #755D30 #30753A
split-complementary
#304875 #753A30 #6B7530
monochromatic
#0C131E #1E2D4A #304875 #4263A0 #6182BE

Accessibility & contrast

On white

9.09
#304875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#304875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304875
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304875#FFFFFF#000000##FFFFFF
##3048751.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364C77
Deuteranopia (green-blind)
#2D4574
Tritanopia (blue-blind)
#015259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304875;
/* rgb */ color: rgb(48, 72, 117);
/* oklch */ color: oklch(40.5% 0.082 262.1);
Tailwind
colors: {
  custom: {
    50: '#6e7a9d',
    500: '#304875',
    950: '#000000',
  },
}
SCSS
$custom: #304875;
$custom-light: #6e7a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#304875",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 219.13,
    "s": 41.818,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40474,
    "c": 0.08178,
    "h": 262.1
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#304875
secondary
#A58C5B
accent
#A756D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #304875

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

Preview Lab → · Contrast checker → · Palette generator →

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