#304289#304289

#304289 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.120 H 269.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#304289
RGBrgb(48, 66, 137)
HSLhsl(228, 48%, 36%)
HSVhsv(228, 65%, 54%)
CMYKcmyk(65%, 51.8%, 0%, 46.3%)
CIE-LABlab(30.23, 16.90, -41.90)
CIE-LCHlch(30.23, 45.18, 291.96°)
OKLaboklab(40.48% -0.0007 -0.1201)
OKLCHoklch(40.48% 0.12 269.7)
XYZxyz(7.6810, 6.3303, 24.4792)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304289 #897730
analogous
#306F89 #304289 #4B3089
triadic
#304289 #893042 #428930
tetradic
#304289 #89306F #897730 #30894B
square
#304289 #89306F #897730 #30894B
split-complementary
#304289 #894B30 #6F8930
monochromatic
#10162E #202C5C #304289 #4058B6 #697DCA

Accessibility & contrast

On white

9.27
#304289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#304289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304289
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304289#FFFFFF#000000##FFFFFF
##3042891.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8C
Deuteranopia (green-blind)
#024388
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304289;
/* rgb */ color: rgb(48, 66, 137);
/* oklch */ color: oklch(40.5% 0.120 269.7);
Tailwind
colors: {
  custom: {
    50: '#7276ac',
    500: '#304289',
    950: '#000000',
  },
}
SCSS
$custom: #304289;
$custom-light: #7276ac;
$custom-dark: #000000;
JSON
{
  "hex": "#304289",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 137
  },
  "hsl": {
    "h": 227.865,
    "s": 48.108,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.12007,
    "h": 269.7
  },
  "luminance": 0.06331
}

Semantic roles & 50–950 ramp

primary
#304289
secondary
#B2A263
accent
#BC50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304289

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

Preview Lab → · Contrast checker → · Palette generator →

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