#304286#304286

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

Color values

HEX#304286
RGBrgb(48, 66, 134)
HSLhsl(227, 47%, 36%)
HSVhsv(227, 64%, 53%)
CMYKcmyk(64.2%, 50.7%, 0%, 47.5%)
CIE-LABlab(30.02, 15.78, -40.38)
CIE-LCHlch(30.02, 43.36, 291.35°)
OKLaboklab(40.26% -0.0011 -0.1156)
OKLCHoklch(40.26% 0.116 269.5)
XYZxyz(7.4688, 6.2454, 23.3615)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304286 #867430
analogous
#306D86 #304286 #493086
triadic
#304286 #863042 #428630
tetradic
#304286 #86306D #867430 #308649
square
#304286 #86306D #867430 #308649
split-complementary
#304286 #864930 #6D8630
monochromatic
#10162C #202C59 #304286 #4058B3 #687CC9

Accessibility & contrast

On white

9.34
#304286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304286
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304286#FFFFFF#000000##FFFFFF
##3042861.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B88
Deuteranopia (green-blind)
#0B4385
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304286;
/* rgb */ color: rgb(48, 66, 134);
/* oklch */ color: oklch(40.3% 0.116 269.5);
Tailwind
colors: {
  custom: {
    50: '#7176aa',
    500: '#304286',
    950: '#000000',
  },
}
SCSS
$custom: #304286;
$custom-light: #7176aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304286",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 134
  },
  "hsl": {
    "h": 227.442,
    "s": 47.253,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.11559,
    "h": 269.5
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304286

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

Preview Lab → · Contrast checker → · Palette generator →

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