#304084#304084

#304084 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.115 H 270.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#304084
RGBrgb(48, 64, 132)
HSLhsl(229, 47%, 35%)
HSVhsv(229, 64%, 52%)
CMYKcmyk(63.6%, 51.5%, 0%, 48.2%)
CIE-LABlab(29.31, 16.40, -40.28)
CIE-LCHlch(29.31, 43.50, 292.15°)
OKLaboklab(39.67% 0.0008 -0.1153)
OKLCHoklch(39.67% 0.115 270.4)
XYZxyz(7.2158, 5.9605, 22.5956)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304084 #847430
analogous
#306A84 #304084 #4A3084
triadic
#304084 #843040 #408430
tetradic
#304084 #84306A #847430 #30844A
square
#304084 #84306A #847430 #30844A
split-complementary
#304084 #844A30 #6A8430
monochromatic
#0F142A #202A57 #304084 #4056B1 #6779C8

Accessibility & contrast

On white

9.58
#304084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#304084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304084
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304084#FFFFFF#000000##FFFFFF
##3040841.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4986
Deuteranopia (green-blind)
#084283
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304084;
/* rgb */ color: rgb(48, 64, 132);
/* oklch */ color: oklch(39.7% 0.115 270.4);
Tailwind
colors: {
  custom: {
    50: '#7174a8',
    500: '#304084',
    950: '#000000',
  },
}
SCSS
$custom: #304084;
$custom-light: #7174a8;
$custom-dark: #000000;
JSON
{
  "hex": "#304084",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 132
  },
  "hsl": {
    "h": 228.571,
    "s": 46.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.11533,
    "h": 270.4
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#304084
secondary
#AFA061
accent
#BD51D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304084

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

Preview Lab → · Contrast checker → · Palette generator →

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