#304382#304382

#304382 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.108 H 268.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#304382
RGBrgb(48, 67, 130)
HSLhsl(226, 46%, 35%)
HSVhsv(226, 63%, 51%)
CMYKcmyk(63.1%, 48.5%, 0%, 49%)
CIE-LABlab(30.04, 13.62, -37.87)
CIE-LCHlch(30.04, 40.24, 289.79°)
OKLaboklab(40.19% -0.0027 -0.1082)
OKLCHoklch(40.19% 0.108 268.6)
XYZxyz(7.2540, 6.2538, 21.9396)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304382 #826F30
analogous
#306C82 #304382 #463082
triadic
#304382 #823043 #438230
tetradic
#304382 #82306C #826F30 #308246
square
#304382 #82306C #826F30 #308246
split-complementary
#304382 #824630 #6C8230
monochromatic
#0F1529 #1F2C55 #304382 #415AAF #667CC6

Accessibility & contrast

On white

9.33
#304382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#304382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304382
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304382#FFFFFF#000000##FFFFFF
##3043821.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244B84
Deuteranopia (green-blind)
#164381
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304382;
/* rgb */ color: rgb(48, 67, 130);
/* oklch */ color: oklch(40.2% 0.108 268.6);
Tailwind
colors: {
  custom: {
    50: '#7176a7',
    500: '#304382',
    950: '#000000',
  },
}
SCSS
$custom: #304382;
$custom-light: #7176a7;
$custom-dark: #000000;
JSON
{
  "hex": "#304382",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 130
  },
  "hsl": {
    "h": 226.098,
    "s": 46.067,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40186,
    "c": 0.10821,
    "h": 268.6
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#304382
secondary
#AE9C60
accent
#B752D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #304382

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

Preview Lab → · Contrast checker → · Palette generator →

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