#304083#304083

#304083 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.114 H 270.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#304083
RGBrgb(48, 64, 131)
HSLhsl(228, 46%, 35%)
HSVhsv(228, 63%, 51%)
CMYKcmyk(63.4%, 51.1%, 0%, 48.6%)
CIE-LABlab(29.24, 16.03, -39.77)
CIE-LCHlch(29.24, 42.88, 291.95°)
OKLaboklab(39.6% 0.0007 -0.1138)
OKLCHoklch(39.6% 0.114 270.4)
XYZxyz(7.1477, 5.9333, 22.2369)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304083 #837330
analogous
#306983 #304083 #4A3083
triadic
#304083 #833040 #408330
tetradic
#304083 #833069 #837330 #30834A
square
#304083 #833069 #837330 #30834A
split-complementary
#304083 #834A30 #698330
monochromatic
#0F1429 #202A56 #304083 #4056B0 #6679C7

Accessibility & contrast

On white

9.60
#304083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#304083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304083
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304083#FFFFFF#000000##FFFFFF
##3040831.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4985
Deuteranopia (green-blind)
#0B4182
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304083;
/* rgb */ color: rgb(48, 64, 131);
/* oklch */ color: oklch(39.6% 0.114 270.4);
Tailwind
colors: {
  custom: {
    50: '#7174a7',
    500: '#304083',
    950: '#000000',
  },
}
SCSS
$custom: #304083;
$custom-light: #7174a7;
$custom-dark: #000000;
JSON
{
  "hex": "#304083",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 131
  },
  "hsl": {
    "h": 228.434,
    "s": 46.369,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39599,
    "c": 0.11383,
    "h": 270.4
  },
  "luminance": 0.05934
}

Semantic roles & 50–950 ramp

primary
#304083
secondary
#AE9F61
accent
#BD52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #304083

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

Preview Lab → · Contrast checker → · Palette generator →

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