#304996#304996

#304996 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.0% C 0.130 H 267.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#304996
RGBrgb(48, 73, 150)
HSLhsl(225, 52%, 39%)
HSVhsv(225, 68%, 59%)
CMYKcmyk(68%, 51.3%, 0%, 41.2%)
CIE-LABlab(33.12, 17.04, -45.21)
CIE-LCHlch(33.12, 48.31, 290.65°)
OKLaboklab(42.97% -0.0063 -0.1297)
OKLCHoklch(42.97% 0.13 267.2)
XYZxyz(9.1046, 7.5946, 29.8343)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304996 #967D30
analogous
#307C96 #304996 #4A3096
triadic
#304996 #963049 #499630
tetradic
#304996 #96307C #967D30 #30964A
square
#304996 #96307C #967D30 #30964A
split-complementary
#304996 #964A30 #7C9630
monochromatic
#121C39 #213268 #304996 #4161C2 #6F87D1

Accessibility & contrast

On white

8.34
#304996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#304996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304996
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304996#FFFFFF#000000##FFFFFF
##3049961.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5399
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304996;
/* rgb */ color: rgb(48, 73, 150);
/* oklch */ color: oklch(43.0% 0.130 267.2);
Tailwind
colors: {
  custom: {
    50: '#747bb5',
    500: '#304996',
    950: '#000000',
  },
}
SCSS
$custom: #304996;
$custom-light: #747bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#304996",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 150
  },
  "hsl": {
    "h": 225.294,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42965,
    "c": 0.12983,
    "h": 267.2
  },
  "luminance": 0.07595
}

Semantic roles & 50–950 ramp

primary
#304996
secondary
#B9A569
accent
#B84DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304996

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

Preview Lab → · Contrast checker → · Palette generator →

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