#304194#304194

#304194 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.137 H 270.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#304194
RGBrgb(48, 65, 148)
HSLhsl(230, 51%, 38%)
HSVhsv(230, 68%, 58%)
CMYKcmyk(67.6%, 56.1%, 0%, 42%)
CIE-LABlab(30.75, 21.67, -47.82)
CIE-LCHlch(30.75, 52.50, 294.38°)
OKLaboklab(41.13% 0.0012 -0.1375)
OKLCHoklch(41.13% 0.137 270.5)
XYZxyz(8.4527, 6.5463, 28.8293)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304194 #948330
analogous
#307394 #304194 #513094
triadic
#304194 #943041 #419430
tetradic
#304194 #943073 #948330 #309451
square
#304194 #943073 #948330 #309451
split-complementary
#304194 #945130 #739430
monochromatic
#121838 #212D66 #304194 #4056C1 #6E7FD0

Accessibility & contrast

On white

9.09
#304194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#304194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304194
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304194#FFFFFF#000000##FFFFFF
##3041941.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304194;
/* rgb */ color: rgb(48, 65, 148);
/* oklch */ color: oklch(41.1% 0.137 270.5);
Tailwind
colors: {
  custom: {
    50: '#7475b4',
    500: '#304194',
    950: '#000000',
  },
}
SCSS
$custom: #304194;
$custom-light: #7475b4;
$custom-dark: #000000;
JSON
{
  "hex": "#304194",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 148
  },
  "hsl": {
    "h": 229.8,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41127,
    "c": 0.13749,
    "h": 270.5
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#304194
secondary
#B8AA68
accent
#C24DDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304194

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

Preview Lab → · Contrast checker → · Palette generator →

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