#304285#304285

#304285 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.114 H 269.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#304285
RGBrgb(48, 66, 133)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 52%)
CMYKcmyk(63.9%, 50.4%, 0%, 47.8%)
CIE-LABlab(29.95, 15.41, -39.87)
CIE-LCHlch(29.95, 42.75, 291.14°)
OKLaboklab(40.18% -0.0012 -0.1141)
OKLCHoklch(40.18% 0.114 269.4)
XYZxyz(7.3993, 6.2176, 22.9959)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304285 #857330
analogous
#306C85 #304285 #483085
triadic
#304285 #853042 #428530
tetradic
#304285 #85306C #857330 #308548
square
#304285 #85306C #857330 #308548
split-complementary
#304285 #854830 #6C8530
monochromatic
#10152B #202C58 #304285 #4058B2 #677CC8

Accessibility & contrast

On white

9.36
#304285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#304285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304285
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304285#FFFFFF#000000##FFFFFF
##3042851.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4B87
Deuteranopia (green-blind)
#0E4384
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304285;
/* rgb */ color: rgb(48, 66, 133);
/* oklch */ color: oklch(40.2% 0.114 269.4);
Tailwind
colors: {
  custom: {
    50: '#7176a9',
    500: '#304285',
    950: '#000000',
  },
}
SCSS
$custom: #304285;
$custom-light: #7176a9;
$custom-dark: #000000;
JSON
{
  "hex": "#304285",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 133
  },
  "hsl": {
    "h": 227.294,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40183,
    "c": 0.1141,
    "h": 269.4
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#304285
secondary
#AF9F61
accent
#BA51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304285

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

Preview Lab → · Contrast checker → · Palette generator →

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