#304196#304196

#304196 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.140 H 270.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#304196
RGBrgb(48, 65, 150)
HSLhsl(230, 52%, 39%)
HSVhsv(230, 68%, 59%)
CMYKcmyk(68%, 56.7%, 0%, 41.2%)
CIE-LABlab(30.90, 22.41, -48.80)
CIE-LCHlch(30.90, 53.70, 294.67°)
OKLaboklab(41.29% 0.0013 -0.1404)
OKLCHoklch(41.29% 0.14 270.5)
XYZxyz(8.6124, 6.6102, 29.6703)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304196 #968530
analogous
#307496 #304196 #523096
triadic
#304196 #963041 #419630
tetradic
#304196 #963074 #968530 #309652
square
#304196 #963074 #968530 #309652
split-complementary
#304196 #965230 #749630
monochromatic
#121939 #212D68 #304196 #4157C2 #6F80D1

Accessibility & contrast

On white

9.04
#304196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#304196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304196
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304196#FFFFFF#000000##FFFFFF
##3041961.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304196;
/* rgb */ color: rgb(48, 65, 150);
/* oklch */ color: oklch(41.3% 0.140 270.5);
Tailwind
colors: {
  custom: {
    50: '#7575b6',
    500: '#304196',
    950: '#000000',
  },
}
SCSS
$custom: #304196;
$custom-light: #7575b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304196",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 150
  },
  "hsl": {
    "h": 230,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41289,
    "c": 0.14037,
    "h": 270.5
  },
  "luminance": 0.06611
}

Semantic roles & 50–950 ramp

primary
#304196
secondary
#B9AB69
accent
#C34DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304196

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

Preview Lab → · Contrast checker → · Palette generator →

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