#304287#304287

#304287 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.3% C 0.117 H 269.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#304287
RGBrgb(48, 66, 135)
HSLhsl(228, 48%, 36%)
HSVhsv(228, 64%, 53%)
CMYKcmyk(64.4%, 51.1%, 0%, 47.1%)
CIE-LABlab(30.09, 16.16, -40.89)
CIE-LCHlch(30.09, 43.97, 291.56°)
OKLaboklab(40.33% -0.0009 -0.1171)
OKLCHoklch(40.33% 0.117 269.5)
XYZxyz(7.5388, 6.2734, 23.7306)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304287 #877530
analogous
#306D87 #304287 #493087
triadic
#304287 #873042 #428730
tetradic
#304287 #87306D #877530 #308749
square
#304287 #87306D #877530 #308749
split-complementary
#304287 #874930 #6D8730
monochromatic
#10162D #202C5A #304287 #4058B4 #687CC9

Accessibility & contrast

On white

9.31
#304287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#304287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304287
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304287#FFFFFF#000000##FFFFFF
##3042871.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304287;
/* rgb */ color: rgb(48, 66, 135);
/* oklch */ color: oklch(40.3% 0.117 269.5);
Tailwind
colors: {
  custom: {
    50: '#7276aa',
    500: '#304287',
    950: '#000000',
  },
}
SCSS
$custom: #304287;
$custom-light: #7276aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304287",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 227.586,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40331,
    "c": 0.11708,
    "h": 269.5
  },
  "luminance": 0.06274
}

Semantic roles & 50–950 ramp

primary
#304287
secondary
#B1A062
accent
#BB51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304287

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

Preview Lab → · Contrast checker → · Palette generator →

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