#304792#304792

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

Color values

HEX#304792
RGBrgb(48, 71, 146)
HSLhsl(226, 51%, 38%)
HSVhsv(226, 67%, 57%)
CMYKcmyk(67.1%, 51.4%, 0%, 42.7%)
CIE-LABlab(32.28, 16.88, -44.13)
CIE-LCHlch(32.28, 47.25, 290.93°)
OKLaboklab(42.24% -0.0048 -0.1265)
OKLCHoklch(42.24% 0.127 267.8)
XYZxyz(8.6587, 7.2094, 28.1238)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304792 #927B30
analogous
#307892 #304792 #4A3092
triadic
#304792 #923047 #479230
tetradic
#304792 #923078 #927B30 #30924A
square
#304792 #923078 #927B30 #30924A
split-complementary
#304792 #924A30 #789230
monochromatic
#121A36 #213164 #304792 #3F5DC0 #6D84CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304792#FFFFFF#000000##FFFFFF
##3047921.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)
#1C5195
Deuteranopia (green-blind)
#004890
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304792;
/* rgb */ color: rgb(48, 71, 146);
/* oklch */ color: oklch(42.2% 0.127 267.8);
Tailwind
colors: {
  custom: {
    50: '#7479b2',
    500: '#304792',
    950: '#000000',
  },
}
SCSS
$custom: #304792;
$custom-light: #7479b2;
$custom-dark: #000000;
JSON
{
  "hex": "#304792",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 225.918,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42235,
    "c": 0.12664,
    "h": 267.8
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#304792
secondary
#B7A467
accent
#B94EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304792

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

Preview Lab → · Contrast checker → · Palette generator →

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