#304890#304890

#304890 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.122 H 267.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#304890
RGBrgb(48, 72, 144)
HSLhsl(225, 50%, 38%)
HSVhsv(225, 67%, 56%)
CMYKcmyk(66.7%, 50%, 0%, 43.5%)
CIE-LABlab(32.43, 15.46, -42.67)
CIE-LCHlch(32.43, 45.38, 289.91°)
OKLaboklab(42.3% -0.006 -0.1222)
OKLCHoklch(42.3% 0.122 267.2)
XYZxyz(8.5686, 7.2759, 27.3330)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304890 #907830
analogous
#307890 #304890 #483090
triadic
#304890 #903048 #489030
tetradic
#304890 #903078 #907830 #309048
square
#304890 #903078 #907830 #309048
split-complementary
#304890 #904830 #789030
monochromatic
#111A34 #213162 #304890 #3F5FBE #6C85CE

Accessibility & contrast

On white

8.55
#304890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#304890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304890
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304890#FFFFFF#000000##FFFFFF
##3048901.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215193
Deuteranopia (green-blind)
#0A488F
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304890;
/* rgb */ color: rgb(48, 72, 144);
/* oklch */ color: oklch(42.3% 0.122 267.2);
Tailwind
colors: {
  custom: {
    50: '#737ab1',
    500: '#304890',
    950: '#000000',
  },
}
SCSS
$custom: #304890;
$custom-light: #737ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#304890",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 144
  },
  "hsl": {
    "h": 225,
    "s": 50,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42303,
    "c": 0.12238,
    "h": 267.2
  },
  "luminance": 0.07277
}

Semantic roles & 50–950 ramp

primary
#304890
secondary
#B5A266
accent
#B74EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304890

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

Preview Lab → · Contrast checker → · Palette generator →

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