#304582#304582

#304582 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.6% C 0.106 H 267.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#304582
RGBrgb(48, 69, 130)
HSLhsl(225, 46%, 35%)
HSVhsv(225, 63%, 51%)
CMYKcmyk(63.1%, 46.9%, 0%, 49%)
CIE-LABlab(30.63, 12.27, -36.93)
CIE-LCHlch(30.63, 38.91, 288.38°)
OKLaboklab(40.63% -0.0049 -0.1054)
OKLCHoklch(40.63% 0.106 267.3)
XYZxyz(7.3749, 6.4957, 21.9799)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304582 #826D30
analogous
#306E82 #304582 #443082
triadic
#304582 #823045 #458230
tetradic
#304582 #82306E #826D30 #308244
square
#304582 #82306E #826D30 #308244
split-complementary
#304582 #824430 #6E8230
monochromatic
#0F1629 #1F2D55 #304582 #415DAF #667FC6

Accessibility & contrast

On white

9.13
#304582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#304582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304582
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304582#FFFFFF#000000##FFFFFF
##3045821.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284C84
Deuteranopia (green-blind)
#1B4581
Tritanopia (blue-blind)
#00535D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304582;
/* rgb */ color: rgb(48, 69, 130);
/* oklch */ color: oklch(40.6% 0.106 267.3);
Tailwind
colors: {
  custom: {
    50: '#7178a7',
    500: '#304582',
    950: '#000000',
  },
}
SCSS
$custom: #304582;
$custom-light: #7178a7;
$custom-dark: #000000;
JSON
{
  "hex": "#304582",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 130
  },
  "hsl": {
    "h": 224.634,
    "s": 46.067,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.10551,
    "h": 267.3
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#304582
secondary
#AE9A60
accent
#B452D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #304582

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

Preview Lab → · Contrast checker → · Palette generator →

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