#304EC9#304EC9

#304EC9 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.194 H 267.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#304EC9
RGBrgb(48, 78, 201)
HSLhsl(228, 61%, 49%)
HSVhsv(228, 76%, 79%)
CMYKcmyk(76.1%, 61.2%, 0%, 21.2%)
CIE-LABlab(38.36, 32.74, -66.96)
CIE-LCHlch(38.36, 74.53, 296.05°)
OKLaboklab(48.12% -0.0078 -0.1935)
OKLCHoklch(48.12% 0.194 267.7)
XYZxyz(14.4823, 10.2926, 56.4704)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EC9 #C9AB30
analogous
#309BC9 #304EC9 #5F30C9
triadic
#304EC9 #C9304E #4EC930
tetradic
#304EC9 #C9309B #C9AB30 #30C95F
square
#304EC9 #C9309B #C9AB30 #30C95F
split-complementary
#304EC9 #C95F30 #9BC930
monochromatic
#182866 #243B98 #304EC9 #5E76D8 #8FA0E4

Accessibility & contrast

On white

6.87
#304EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#304EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304EC9
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EC9#FFFFFF#000000##FFFFFF
##304EC91.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #304ec9;
/* rgb */ color: rgb(48, 78, 201);
/* oklch */ color: oklch(48.1% 0.194 267.7);
Tailwind
colors: {
  custom: {
    50: '#7f7fda',
    500: '#304ec9',
    950: '#000000',
  },
}
SCSS
$custom: #304ec9;
$custom-light: #7f7fda;
$custom-dark: #000000;
JSON
{
  "hex": "#304ec9",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 201
  },
  "hsl": {
    "h": 228.235,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48122,
    "c": 0.1937,
    "h": 267.7
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#304EC9
secondary
#CFC186
accent
#C543E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #304EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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