#304495#304495

#304495 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.8% C 0.135 H 269.3°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#304495
RGBrgb(48, 68, 149)
HSLhsl(228, 51%, 39%)
HSVhsv(228, 68%, 58%)
CMYKcmyk(67.8%, 54.4%, 0%, 41.6%)
CIE-LABlab(31.65, 20.02, -46.98)
CIE-LCHlch(31.65, 51.06, 293.08°)
OKLaboklab(41.83% -0.0016 -0.135)
OKLCHoklch(41.83% 0.135 269.3)
XYZxyz(8.7090, 6.9317, 29.3069)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304495 #958130
analogous
#307695 #304495 #4E3095
triadic
#304495 #953044 #449530
tetradic
#304495 #953076 #958130 #30954E
square
#304495 #953076 #958130 #30954E
split-complementary
#304495 #954E30 #769530
monochromatic
#121A38 #212F67 #304495 #415AC2 #6F82D1

Accessibility & contrast

On white

8.80
#304495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#304495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304495
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304495#FFFFFF#000000##FFFFFF
##3044951.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4F98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304495;
/* rgb */ color: rgb(48, 68, 149);
/* oklch */ color: oklch(41.8% 0.135 269.3);
Tailwind
colors: {
  custom: {
    50: '#7477b5',
    500: '#304495',
    950: '#000000',
  },
}
SCSS
$custom: #304495;
$custom-light: #7477b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304495",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 149
  },
  "hsl": {
    "h": 228.119,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41828,
    "c": 0.13497,
    "h": 269.3
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304495

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

Preview Lab → · Contrast checker → · Palette generator →

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