#304693#304693

#304693 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.129 H 268.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#304693
RGBrgb(48, 70, 147)
HSLhsl(227, 51%, 38%)
HSVhsv(227, 67%, 58%)
CMYKcmyk(67.3%, 52.4%, 0%, 42.4%)
CIE-LABlab(32.07, 17.93, -45.08)
CIE-LCHlch(32.07, 48.52, 291.68°)
OKLaboklab(42.1% -0.0037 -0.1294)
OKLCHoklch(42.1% 0.129 268.4)
XYZxyz(8.6737, 7.1145, 28.5142)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304693 #937D30
analogous
#307793 #304693 #4C3093
triadic
#304693 #933046 #469330
tetradic
#304693 #933077 #937D30 #30934C
square
#304693 #933077 #937D30 #30934C
split-complementary
#304693 #934C30 #779330
monochromatic
#121A37 #213065 #304693 #405CC1 #6E84D0

Accessibility & contrast

On white

8.67
#304693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304693
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304693#FFFFFF#000000##FFFFFF
##3046931.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185096
Deuteranopia (green-blind)
#004791
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304693;
/* rgb */ color: rgb(48, 70, 147);
/* oklch */ color: oklch(42.1% 0.129 268.4);
Tailwind
colors: {
  custom: {
    50: '#7479b3',
    500: '#304693',
    950: '#000000',
  },
}
SCSS
$custom: #304693;
$custom-light: #7479b3;
$custom-dark: #000000;
JSON
{
  "hex": "#304693",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 147
  },
  "hsl": {
    "h": 226.667,
    "s": 50.769,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.12942,
    "h": 268.4
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304693

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

Preview Lab → · Contrast checker → · Palette generator →

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