#304790#304790

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

Color values

HEX#304790
RGBrgb(48, 71, 144)
HSLhsl(226, 50%, 38%)
HSVhsv(226, 67%, 56%)
CMYKcmyk(66.7%, 50.7%, 0%, 43.5%)
CIE-LABlab(32.14, 16.13, -43.13)
CIE-LCHlch(32.14, 46.05, 290.51°)
OKLaboklab(42.09% -0.005 -0.1236)
OKLCHoklch(42.09% 0.124 267.7)
XYZxyz(8.5045, 7.1477, 27.3116)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304790 #907930
analogous
#307790 #304790 #493090
triadic
#304790 #903047 #479030
tetradic
#304790 #903077 #907930 #309049
square
#304790 #903077 #907930 #309049
split-complementary
#304790 #904930 #779030
monochromatic
#111A34 #213062 #304790 #3F5EBE #6C84CE

Accessibility & contrast

On white

8.64
#304790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#304790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304790
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304790#FFFFFF#000000##FFFFFF
##3047901.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5093
Deuteranopia (green-blind)
#05478E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304790;
/* rgb */ color: rgb(48, 71, 144);
/* oklch */ color: oklch(42.1% 0.124 267.7);
Tailwind
colors: {
  custom: {
    50: '#7379b1',
    500: '#304790',
    950: '#000000',
  },
}
SCSS
$custom: #304790;
$custom-light: #7379b1;
$custom-dark: #000000;
JSON
{
  "hex": "#304790",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 144
  },
  "hsl": {
    "h": 225.625,
    "s": 50,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42086,
    "c": 0.1237,
    "h": 267.7
  },
  "luminance": 0.07148
}

Semantic roles & 50–950 ramp

primary
#304790
secondary
#B5A366
accent
#B84EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304790

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

Preview Lab → · Contrast checker → · Palette generator →

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