#305AC4#305AC4

#305AC4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.173 H 264.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#305AC4
RGBrgb(48, 90, 196)
HSLhsl(223, 61%, 48%)
HSVhsv(223, 76%, 77%)
CMYKcmyk(75.5%, 54.1%, 0%, 23.1%)
CIE-LABlab(41.10, 23.11, -59.61)
CIE-LCHlch(41.10, 63.93, 291.19°)
OKLaboklab(50.05% -0.0163 -0.1718)
OKLCHoklch(50.05% 0.173 264.6)
XYZxyz(14.8354, 11.9246, 53.7337)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AC4 #C49A30
analogous
#30A4C4 #305AC4 #5030C4
triadic
#305AC4 #C4305A #5AC430
tetradic
#305AC4 #C430A4 #C49A30 #30C450
square
#305AC4 #C430A4 #C49A30 #30C450
split-complementary
#305AC4 #C45030 #A4C430
monochromatic
#182D62 #244393 #305AC4 #5A7ED7 #8CA4E3

Accessibility & contrast

On white

6.20
#305AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#305AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AC4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AC4#FFFFFF#000000##FFFFFF
##305AC41.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305ac4;
/* rgb */ color: rgb(48, 90, 196);
/* oklch */ color: oklch(50.0% 0.173 264.6);
Tailwind
colors: {
  custom: {
    50: '#7d88d7',
    500: '#305ac4',
    950: '#000000',
  },
}
SCSS
$custom: #305ac4;
$custom-light: #7d88d7;
$custom-dark: #000000;
JSON
{
  "hex": "#305ac4",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 196
  },
  "hsl": {
    "h": 222.973,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50049,
    "c": 0.17254,
    "h": 264.6
  },
  "luminance": 0.11926
}

Semantic roles & 50–950 ramp

primary
#305AC4
secondary
#CDB883
accent
#B644E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305AC4

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

Preview Lab → · Contrast checker → · Palette generator →

#305AC4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva