#304595#304595

#304595 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.134 H 268.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#304595
RGBrgb(48, 69, 149)
HSLhsl(228, 51%, 39%)
HSVhsv(228, 68%, 58%)
CMYKcmyk(67.8%, 53.7%, 0%, 41.6%)
CIE-LABlab(31.93, 19.35, -46.53)
CIE-LCHlch(31.93, 50.39, 292.58°)
OKLaboklab(42.04% -0.0025 -0.1336)
OKLCHoklch(42.04% 0.134 268.9)
XYZxyz(8.7700, 7.0537, 29.3273)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304595 #958030
analogous
#307795 #304595 #4D3095
triadic
#304595 #953045 #459530
tetradic
#304595 #953077 #958030 #30954D
square
#304595 #953077 #958030 #30954D
split-complementary
#304595 #954D30 #779530
monochromatic
#121A38 #213067 #304595 #415BC2 #6F83D1

Accessibility & contrast

On white

8.71
#304595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#304595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304595
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304595#FFFFFF#000000##FFFFFF
##3045951.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115098
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304595;
/* rgb */ color: rgb(48, 69, 149);
/* oklch */ color: oklch(42.0% 0.134 268.9);
Tailwind
colors: {
  custom: {
    50: '#7478b5',
    500: '#304595',
    950: '#000000',
  },
}
SCSS
$custom: #304595;
$custom-light: #7478b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304595",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 149
  },
  "hsl": {
    "h": 227.525,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.13364,
    "h": 268.9
  },
  "luminance": 0.07055
}

Semantic roles & 50–950 ramp

primary
#304595
secondary
#B8A869
accent
#BD4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304595

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

Preview Lab → · Contrast checker → · Palette generator →

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