#304384#304384

#304384 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.3% C 0.111 H 268.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#304384
RGBrgb(48, 67, 132)
HSLhsl(226, 47%, 35%)
HSVhsv(226, 64%, 52%)
CMYKcmyk(63.6%, 49.2%, 0%, 48.2%)
CIE-LABlab(30.18, 14.36, -38.90)
CIE-LCHlch(30.18, 41.46, 290.27°)
OKLaboklab(40.33% -0.0024 -0.1112)
OKLCHoklch(40.33% 0.111 268.8)
XYZxyz(7.3895, 6.3080, 22.6535)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304384 #847130
analogous
#306D84 #304384 #473084
triadic
#304384 #843043 #438430
tetradic
#304384 #84306D #847130 #308447
square
#304384 #84306D #847130 #308447
split-complementary
#304384 #844730 #6D8430
monochromatic
#0F152A #202C57 #304384 #405AB1 #677DC8

Accessibility & contrast

On white

9.28
#304384 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#304384 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304384
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304384#FFFFFF#000000##FFFFFF
##3043841.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224B86
Deuteranopia (green-blind)
#134483
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304384;
/* rgb */ color: rgb(48, 67, 132);
/* oklch */ color: oklch(40.3% 0.111 268.8);
Tailwind
colors: {
  custom: {
    50: '#7176a8',
    500: '#304384',
    950: '#000000',
  },
}
SCSS
$custom: #304384;
$custom-light: #7176a8;
$custom-dark: #000000;
JSON
{
  "hex": "#304384",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 132
  },
  "hsl": {
    "h": 226.429,
    "s": 46.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4033,
    "c": 0.11123,
    "h": 268.8
  },
  "luminance": 0.06309
}

Semantic roles & 50–950 ramp

primary
#304384
secondary
#AF9D61
accent
#B851D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304384

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

Preview Lab → · Contrast checker → · Palette generator →

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