#304CA1#304CA1

#304CA1 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.142 H 266.8°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#304CA1
RGBrgb(48, 76, 161)
HSLhsl(225, 54%, 41%)
HSVhsv(225, 70%, 63%)
CMYKcmyk(70.2%, 52.8%, 0%, 36.9%)
CIE-LABlab(34.74, 19.16, -49.24)
CIE-LCHlch(34.74, 52.84, 291.26°)
OKLaboklab(44.44% -0.0079 -0.1415)
OKLCHoklch(44.44% 0.142 266.8)
XYZxyz(10.2342, 8.3694, 34.7874)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CA1 #A18530
analogous
#3084A1 #304CA1 #4C30A1
triadic
#304CA1 #A1304C #4CA130
tetradic
#304CA1 #A13084 #A18530 #30A14C
square
#304CA1 #A13084 #A18530 #30A14C
split-complementary
#304CA1 #A14C30 #84A130
monochromatic
#141F43 #223672 #304CA1 #4666C8 #758DD6

Accessibility & contrast

On white

7.85
#304CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#304CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CA1
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CA1#FFFFFF#000000##FFFFFF
##304CA11.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1557A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304ca1;
/* rgb */ color: rgb(48, 76, 161);
/* oklch */ color: oklch(44.4% 0.142 266.8);
Tailwind
colors: {
  custom: {
    50: '#767dbd',
    500: '#304ca1',
    950: '#000000',
  },
}
SCSS
$custom: #304ca1;
$custom-light: #767dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#304ca1",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 161
  },
  "hsl": {
    "h": 225.133,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44439,
    "c": 0.14173,
    "h": 266.8
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#304CA1
secondary
#BEAA6F
accent
#B94ADD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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