#304590#304590

#304590 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.7% C 0.126 H 268.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#304590
RGBrgb(48, 69, 144)
HSLhsl(227, 50%, 38%)
HSVhsv(227, 67%, 56%)
CMYKcmyk(66.7%, 52.1%, 0%, 43.5%)
CIE-LABlab(31.57, 17.48, -44.05)
CIE-LCHlch(31.57, 47.39, 291.65°)
OKLaboklab(41.65% -0.003 -0.1263)
OKLCHoklch(41.65% 0.126 268.6)
XYZxyz(8.3794, 6.8975, 27.2699)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304590 #907B30
analogous
#307590 #304590 #4B3090
triadic
#304590 #903045 #459030
tetradic
#304590 #903075 #907B30 #30904B
square
#304590 #903075 #907B30 #30904B
split-complementary
#304590 #904B30 #759030
monochromatic
#111934 #212F62 #304590 #3F5BBE #6C82CE

Accessibility & contrast

On white

8.83
#304590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#304590 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304590
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304590#FFFFFF#000000##FFFFFF
##3045901.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194F93
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304590;
/* rgb */ color: rgb(48, 69, 144);
/* oklch */ color: oklch(41.7% 0.126 268.6);
Tailwind
colors: {
  custom: {
    50: '#7378b1',
    500: '#304590',
    950: '#000000',
  },
}
SCSS
$custom: #304590;
$custom-light: #7378b1;
$custom-dark: #000000;
JSON
{
  "hex": "#304590",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 144
  },
  "hsl": {
    "h": 226.875,
    "s": 50,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41654,
    "c": 0.12637,
    "h": 268.6
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#304590
secondary
#B5A466
accent
#BB4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304590

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

Preview Lab → · Contrast checker → · Palette generator →

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