#304FA9#304FA9

#304FA9 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.149 H 266.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#304FA9
RGBrgb(48, 79, 169)
HSLhsl(225, 56%, 43%)
HSVhsv(225, 72%, 66%)
CMYKcmyk(71.6%, 53.3%, 0%, 33.7%)
CIE-LABlab(36.15, 20.18, -51.76)
CIE-LCHlch(36.15, 55.55, 291.30°)
OKLaboklab(45.68% -0.0098 -0.1489)
OKLCHoklch(45.68% 0.149 266.2)
XYZxyz(11.1738, 9.0838, 38.6929)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA9 #A98A30
analogous
#308BA9 #304FA9 #4D30A9
triadic
#304FA9 #A9304F #4FA930
tetradic
#304FA9 #A9308B #A98A30 #30A94D
square
#304FA9 #A9308B #A98A30 #30A94D
split-complementary
#304FA9 #A94D30 #8BA930
monochromatic
#15224A #223979 #304FA9 #4A6CCC #7A93D9

Accessibility & contrast

On white

7.45
#304FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#304FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA9
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA9#FFFFFF#000000##FFFFFF
##304FA91.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115BAC
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#006574
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304fa9;
/* rgb */ color: rgb(48, 79, 169);
/* oklch */ color: oklch(45.7% 0.149 266.2);
Tailwind
colors: {
  custom: {
    50: '#787fc3',
    500: '#304fa9',
    950: '#000000',
  },
}
SCSS
$custom: #304fa9;
$custom-light: #787fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa9",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 169
  },
  "hsl": {
    "h": 224.628,
    "s": 55.76,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45684,
    "c": 0.14918,
    "h": 266.2
  },
  "luminance": 0.09085
}

Semantic roles & 50–950 ramp

primary
#304FA9
secondary
#C2AE73
accent
#B949DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304FA9

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

Preview Lab → · Contrast checker → · Palette generator →

#304FA9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva