#304696#304696

#304696 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.134 H 268.5°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#304696
RGBrgb(48, 70, 150)
HSLhsl(227, 52%, 39%)
HSVhsv(227, 68%, 59%)
CMYKcmyk(68%, 53.3%, 0%, 41.2%)
CIE-LABlab(32.28, 19.05, -46.57)
CIE-LCHlch(32.28, 50.31, 292.25°)
OKLaboklab(42.33% -0.0034 -0.1337)
OKLCHoklch(42.33% 0.134 268.5)
XYZxyz(8.9122, 7.2099, 29.7702)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304696 #968030
analogous
#307996 #304696 #4D3096
triadic
#304696 #963046 #469630
tetradic
#304696 #963079 #968030 #30964D
square
#304696 #963079 #968030 #30964D
split-complementary
#304696 #964D30 #799630
monochromatic
#121B39 #213068 #304696 #415DC2 #6F84D1

Accessibility & contrast

On white

8.60
#304696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#304696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304696
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304696#FFFFFF#000000##FFFFFF
##3046961.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135199
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304696;
/* rgb */ color: rgb(48, 70, 150);
/* oklch */ color: oklch(42.3% 0.134 268.5);
Tailwind
colors: {
  custom: {
    50: '#7479b5',
    500: '#304696',
    950: '#000000',
  },
}
SCSS
$custom: #304696;
$custom-light: #7479b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304696",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 150
  },
  "hsl": {
    "h": 227.059,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42326,
    "c": 0.13377,
    "h": 268.5
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#304696
secondary
#B9A769
accent
#BC4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304696

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

Preview Lab → · Contrast checker → · Palette generator →

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