#304AA2#304AA2

#304AA2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.1% C 0.146 H 267.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#304AA2
RGBrgb(48, 74, 162)
HSLhsl(226, 54%, 41%)
HSVhsv(226, 70%, 64%)
CMYKcmyk(70.4%, 54.3%, 0%, 36.5%)
CIE-LABlab(34.26, 20.87, -50.62)
CIE-LCHlch(34.26, 54.75, 292.40°)
OKLaboklab(44.1% -0.006 -0.1456)
OKLCHoklch(44.1% 0.146 267.6)
XYZxyz(10.1870, 8.1336, 35.2085)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AA2 #A28830
analogous
#3083A2 #304AA2 #4F30A2
triadic
#304AA2 #A2304A #4AA230
tetradic
#304AA2 #A23083 #A28830 #30A24F
square
#304AA2 #A23083 #A28830 #30A24F
split-complementary
#304AA2 #A24F30 #83A230
monochromatic
#141F44 #223473 #304AA2 #4764C8 #768CD6

Accessibility & contrast

On white

7.99
#304AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#304AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AA2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AA2#FFFFFF#000000##FFFFFF
##304AA21.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0856A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304aa2;
/* rgb */ color: rgb(48, 74, 162);
/* oklch */ color: oklch(44.1% 0.146 267.6);
Tailwind
colors: {
  custom: {
    50: '#777cbe',
    500: '#304aa2',
    950: '#000000',
  },
}
SCSS
$custom: #304aa2;
$custom-light: #777cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#304aa2",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 226.316,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44098,
    "c": 0.14573,
    "h": 267.6
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#304AA2
secondary
#BEAC6F
accent
#BC4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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