#304692#304692

#304692 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.128 H 268.3°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#304692
RGBrgb(48, 70, 146)
HSLhsl(227, 51%, 38%)
HSVhsv(227, 67%, 57%)
CMYKcmyk(67.1%, 52.1%, 0%, 42.7%)
CIE-LABlab(32.00, 17.55, -44.59)
CIE-LCHlch(32.00, 47.92, 291.49°)
OKLaboklab(42.02% -0.0038 -0.1279)
OKLCHoklch(42.02% 0.128 268.3)
XYZxyz(8.5956, 7.0832, 28.1028)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304692 #927C30
analogous
#307792 #304692 #4B3092
triadic
#304692 #923046 #469230
tetradic
#304692 #923077 #927C30 #30924B
square
#304692 #923077 #927C30 #30924B
split-complementary
#304692 #924B30 #779230
monochromatic
#121A36 #213064 #304692 #3F5CC0 #6D83CF

Accessibility & contrast

On white

8.69
#304692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#304692 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304692
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304692#FFFFFF#000000##FFFFFF
##3046921.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5095
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304692;
/* rgb */ color: rgb(48, 70, 146);
/* oklch */ color: oklch(42.0% 0.128 268.3);
Tailwind
colors: {
  custom: {
    50: '#7479b2',
    500: '#304692',
    950: '#000000',
  },
}
SCSS
$custom: #304692;
$custom-light: #7479b2;
$custom-dark: #000000;
JSON
{
  "hex": "#304692",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 146
  },
  "hsl": {
    "h": 226.531,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4202,
    "c": 0.12797,
    "h": 268.3
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#304692
secondary
#B7A567
accent
#BB4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304692

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

Preview Lab → · Contrast checker → · Palette generator →

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