#304288#304288

#304288 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.119 H 269.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#304288
RGBrgb(48, 66, 136)
HSLhsl(228, 48%, 36%)
HSVhsv(228, 65%, 53%)
CMYKcmyk(64.7%, 51.5%, 0%, 46.7%)
CIE-LABlab(30.16, 16.53, -41.40)
CIE-LCHlch(30.16, 44.57, 291.76°)
OKLaboklab(40.41% -0.0008 -0.1186)
OKLCHoklch(40.41% 0.119 269.6)
XYZxyz(7.6096, 6.3017, 24.1031)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304288 #887630
analogous
#306E88 #304288 #4A3088
triadic
#304288 #883042 #428830
tetradic
#304288 #88306E #887630 #30884A
square
#304288 #88306E #887630 #30884A
split-complementary
#304288 #884A30 #6E8830
monochromatic
#10162E #202C5B #304288 #4058B5 #697CCA

Accessibility & contrast

On white

9.29
#304288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#304288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304288
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304288#FFFFFF#000000##FFFFFF
##3042881.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8B
Deuteranopia (green-blind)
#054387
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304288;
/* rgb */ color: rgb(48, 66, 136);
/* oklch */ color: oklch(40.4% 0.119 269.6);
Tailwind
colors: {
  custom: {
    50: '#7276ab',
    500: '#304288',
    950: '#000000',
  },
}
SCSS
$custom: #304288;
$custom-light: #7276ab;
$custom-dark: #000000;
JSON
{
  "hex": "#304288",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 136
  },
  "hsl": {
    "h": 227.727,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40406,
    "c": 0.11858,
    "h": 269.6
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#304288
secondary
#B1A163
accent
#BC50D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304288

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

Preview Lab → · Contrast checker → · Palette generator →

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