#304FA7#304FA7

#304FA7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.146 H 266.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#304FA7
RGBrgb(48, 79, 167)
HSLhsl(224, 55%, 42%)
HSVhsv(224, 71%, 65%)
CMYKcmyk(71.3%, 52.7%, 0%, 34.5%)
CIE-LABlab(36.00, 19.42, -50.80)
CIE-LCHlch(36.00, 54.38, 290.93°)
OKLaboklab(45.53% -0.01 -0.146)
OKLCHoklch(45.53% 0.146 266.1)
XYZxyz(10.9875, 9.0092, 37.7116)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA7 #A78830
analogous
#308BA7 #304FA7 #4D30A7
triadic
#304FA7 #A7304F #4FA730
tetradic
#304FA7 #A7308B #A78830 #30A74D
square
#304FA7 #A7308B #A78830 #30A74D
split-complementary
#304FA7 #A74D30 #8BA730
monochromatic
#152248 #223977 #304FA7 #496BCB #7992D8

Accessibility & contrast

On white

7.49
#304FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#304FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA7
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA7#FFFFFF#000000##FFFFFF
##304FA71.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304fa7;
/* rgb */ color: rgb(48, 79, 167);
/* oklch */ color: oklch(45.5% 0.146 266.1);
Tailwind
colors: {
  custom: {
    50: '#787fc2',
    500: '#304fa7',
    950: '#000000',
  },
}
SCSS
$custom: #304fa7;
$custom-light: #787fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa7",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 224.37,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4553,
    "c": 0.14637,
    "h": 266.1
  },
  "luminance": 0.0901
}

Semantic roles & 50–950 ramp

primary
#304FA7
secondary
#C1AC72
accent
#B849DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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