#304284#304284

#304284 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.1% C 0.113 H 269.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#304284
RGBrgb(48, 66, 132)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 52%)
CMYKcmyk(63.6%, 50%, 0%, 48.2%)
CIE-LABlab(29.89, 15.04, -39.36)
CIE-LCHlch(29.89, 42.14, 290.92°)
OKLaboklab(40.11% -0.0013 -0.1126)
OKLCHoklch(40.11% 0.113 269.3)
XYZxyz(7.3306, 6.1901, 22.6338)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304284 #847230
analogous
#306C84 #304284 #483084
triadic
#304284 #843042 #428430
tetradic
#304284 #84306C #847230 #308448
square
#304284 #84306C #847230 #308448
split-complementary
#304284 #844830 #6C8430
monochromatic
#0F152A #202C57 #304284 #4058B1 #677CC8

Accessibility & contrast

On white

9.38
#304284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#304284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304284
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304284#FFFFFF#000000##FFFFFF
##3042841.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A86
Deuteranopia (green-blind)
#104383
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304284;
/* rgb */ color: rgb(48, 66, 132);
/* oklch */ color: oklch(40.1% 0.113 269.3);
Tailwind
colors: {
  custom: {
    50: '#7176a8',
    500: '#304284',
    950: '#000000',
  },
}
SCSS
$custom: #304284;
$custom-light: #7176a8;
$custom-dark: #000000;
JSON
{
  "hex": "#304284",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 132
  },
  "hsl": {
    "h": 227.143,
    "s": 46.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40109,
    "c": 0.11259,
    "h": 269.3
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#304284
secondary
#AF9E61
accent
#BA51D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304284

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

Preview Lab → · Contrast checker → · Palette generator →

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