#304490#304490

#304490 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.4% C 0.128 H 269.1°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#304490
RGBrgb(48, 68, 144)
HSLhsl(228, 50%, 38%)
HSVhsv(228, 67%, 56%)
CMYKcmyk(66.7%, 52.8%, 0%, 43.5%)
CIE-LABlab(31.29, 18.15, -44.50)
CIE-LCHlch(31.29, 48.06, 292.19°)
OKLaboklab(41.44% -0.002 -0.1277)
OKLCHoklch(41.44% 0.128 269.1)
XYZxyz(8.3184, 6.7755, 27.2496)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304490 #907C30
analogous
#307490 #304490 #4C3090
triadic
#304490 #903044 #449030
tetradic
#304490 #903074 #907C30 #30904C
square
#304490 #903074 #907C30 #30904C
split-complementary
#304490 #904C30 #749030
monochromatic
#111934 #212E62 #304490 #3F5ABE #6C81CE

Accessibility & contrast

On white

8.92
#304490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#304490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304490
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304490#FFFFFF#000000##FFFFFF
##3044901.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164E93
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304490;
/* rgb */ color: rgb(48, 68, 144);
/* oklch */ color: oklch(41.4% 0.128 269.1);
Tailwind
colors: {
  custom: {
    50: '#7377b1',
    500: '#304490',
    950: '#000000',
  },
}
SCSS
$custom: #304490;
$custom-light: #7377b1;
$custom-dark: #000000;
JSON
{
  "hex": "#304490",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 144
  },
  "hsl": {
    "h": 227.5,
    "s": 50,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4144,
    "c": 0.1277,
    "h": 269.1
  },
  "luminance": 0.06776
}

Semantic roles & 50–950 ramp

primary
#304490
secondary
#B5A566
accent
#BD4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304490

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

Preview Lab → · Contrast checker → · Palette generator →

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