#304883#304883

#304883 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.103 H 265.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#304883
RGBrgb(48, 72, 131)
HSLhsl(223, 46%, 35%)
HSVhsv(223, 63%, 51%)
CMYKcmyk(63.4%, 45%, 0%, 48.6%)
CIE-LABlab(31.58, 10.62, -36.03)
CIE-LCHlch(31.58, 37.56, 286.42°)
OKLaboklab(41.38% -0.0081 -0.1027)
OKLCHoklch(41.38% 0.103 265.5)
XYZxyz(7.6316, 6.9011, 22.3982)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304883 #836B30
analogous
#307183 #304883 #423083
triadic
#304883 #833048 #488330
tetradic
#304883 #833071 #836B30 #308342
square
#304883 #833071 #836B30 #308342
split-complementary
#304883 #834230 #718330
monochromatic
#0F1729 #202F56 #304883 #4061B0 #6682C7

Accessibility & contrast

On white

8.82
#304883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#304883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304883
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304883#FFFFFF#000000##FFFFFF
##3048831.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4E85
Deuteranopia (green-blind)
#214782
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304883;
/* rgb */ color: rgb(48, 72, 131);
/* oklch */ color: oklch(41.4% 0.103 265.5);
Tailwind
colors: {
  custom: {
    50: '#717aa7',
    500: '#304883',
    950: '#000000',
  },
}
SCSS
$custom: #304883;
$custom-light: #717aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#304883",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 131
  },
  "hsl": {
    "h": 222.651,
    "s": 46.369,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41383,
    "c": 0.10303,
    "h": 265.5
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#304883
secondary
#AE9861
accent
#B052D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #304883

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

Preview Lab → · Contrast checker → · Palette generator →

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