#304593#304593

#304593 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.9% C 0.131 H 268.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#304593
RGBrgb(48, 69, 147)
HSLhsl(227, 51%, 38%)
HSVhsv(227, 67%, 58%)
CMYKcmyk(67.3%, 53.1%, 0%, 42.4%)
CIE-LABlab(31.79, 18.60, -45.54)
CIE-LCHlch(31.79, 49.19, 292.22°)
OKLaboklab(41.88% -0.0027 -0.1307)
OKLCHoklch(41.88% 0.131 268.8)
XYZxyz(8.6117, 6.9904, 28.4936)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304593 #937E30
analogous
#307693 #304593 #4C3093
triadic
#304593 #933045 #459330
tetradic
#304593 #933076 #937E30 #30934C
square
#304593 #933076 #937E30 #30934C
split-complementary
#304593 #934C30 #769330
monochromatic
#121A37 #212F65 #304593 #405BC1 #6E83D0

Accessibility & contrast

On white

8.76
#304593 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#304593 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304593
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304593#FFFFFF#000000##FFFFFF
##3045931.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154F96
Deuteranopia (green-blind)
#004791
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304593;
/* rgb */ color: rgb(48, 69, 147);
/* oklch */ color: oklch(41.9% 0.131 268.8);
Tailwind
colors: {
  custom: {
    50: '#7478b3',
    500: '#304593',
    950: '#000000',
  },
}
SCSS
$custom: #304593;
$custom-light: #7478b3;
$custom-dark: #000000;
JSON
{
  "hex": "#304593",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 147
  },
  "hsl": {
    "h": 227.273,
    "s": 50.769,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.13075,
    "h": 268.8
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#304593
secondary
#B7A668
accent
#BC4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304593

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

Preview Lab → · Contrast checker → · Palette generator →

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