#304394#304394

#304394 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.135 H 269.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#304394
RGBrgb(48, 67, 148)
HSLhsl(229, 51%, 38%)
HSVhsv(229, 68%, 58%)
CMYKcmyk(67.6%, 54.7%, 0%, 42%)
CIE-LABlab(31.30, 20.32, -46.93)
CIE-LCHlch(31.30, 51.14, 293.41°)
OKLaboklab(41.54% -0.0007 -0.1348)
OKLCHoklch(41.54% 0.135 269.7)
XYZxyz(8.5696, 6.7800, 28.8683)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304394 #948130
analogous
#307594 #304394 #4F3094
triadic
#304394 #943043 #439430
tetradic
#304394 #943075 #948130 #30944F
square
#304394 #943075 #948130 #30944F
split-complementary
#304394 #944F30 #759430
monochromatic
#121938 #212E66 #304394 #4059C1 #6E81D0

Accessibility & contrast

On white

8.91
#304394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#304394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304394
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304394#FFFFFF#000000##FFFFFF
##3043941.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4E97
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304394;
/* rgb */ color: rgb(48, 67, 148);
/* oklch */ color: oklch(41.5% 0.135 269.7);
Tailwind
colors: {
  custom: {
    50: '#7476b4',
    500: '#304394',
    950: '#000000',
  },
}
SCSS
$custom: #304394;
$custom-light: #7476b4;
$custom-dark: #000000;
JSON
{
  "hex": "#304394",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 148
  },
  "hsl": {
    "h": 228.6,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41541,
    "c": 0.13485,
    "h": 269.7
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#304394
secondary
#B8A868
accent
#C04DDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304394

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

Preview Lab → · Contrast checker → · Palette generator →

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