#304182#304182

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

Color values

HEX#304182
RGBrgb(48, 65, 130)
HSLhsl(228, 46%, 35%)
HSVhsv(228, 63%, 51%)
CMYKcmyk(63.1%, 50%, 0%, 49%)
CIE-LABlab(29.46, 14.98, -38.80)
CIE-LCHlch(29.46, 41.59, 291.11°)
OKLaboklab(39.74% -0.0005 -0.1109)
OKLCHoklch(39.74% 0.111 269.7)
XYZxyz(7.1371, 6.0201, 21.9006)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304182 #827130
analogous
#306A82 #304182 #483082
triadic
#304182 #823041 #418230
tetradic
#304182 #82306A #827130 #308248
square
#304182 #82306A #827130 #308248
split-complementary
#304182 #824830 #6A8230
monochromatic
#0F1429 #1F2B55 #304182 #4157AF #667AC6

Accessibility & contrast

On white

9.53
#304182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#304182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304182
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304182#FFFFFF#000000##FFFFFF
##3041821.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204984
Deuteranopia (green-blind)
#114281
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304182;
/* rgb */ color: rgb(48, 65, 130);
/* oklch */ color: oklch(39.7% 0.111 269.7);
Tailwind
colors: {
  custom: {
    50: '#7175a7',
    500: '#304182',
    950: '#000000',
  },
}
SCSS
$custom: #304182;
$custom-light: #7175a7;
$custom-dark: #000000;
JSON
{
  "hex": "#304182",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 227.561,
    "s": 46.067,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39743,
    "c": 0.11094,
    "h": 269.7
  },
  "luminance": 0.06021
}

Semantic roles & 50–950 ramp

primary
#304182
secondary
#AE9E60
accent
#BA52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #304182

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

Preview Lab → · Contrast checker → · Palette generator →

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