#305FD4#305FD4

#305FD4 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.3% C 0.188 H 264.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#305FD4
RGBrgb(48, 95, 212)
HSLhsl(223, 66%, 51%)
HSVhsv(223, 77%, 83%)
CMYKcmyk(77.4%, 55.2%, 0%, 16.9%)
CIE-LABlab(43.60, 25.86, -64.76)
CIE-LCHlch(43.60, 69.73, 291.77°)
OKLaboklab(52.31% -0.0187 -0.1868)
OKLCHoklch(52.31% 0.188 264.3)
XYZxyz(17.1906, 13.5643, 63.9868)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FD4 #D4A530
analogous
#30B1D4 #305FD4 #5330D4
triadic
#305FD4 #D4305F #5FD430
tetradic
#305FD4 #D430B1 #D4A530 #30D453
square
#305FD4 #D430B1 #D4A530 #30D453
split-complementary
#305FD4 #D45330 #B1D430
monochromatic
#183272 #2248A5 #305FD4 #6386DF #95ADE9

Accessibility & contrast

On white

5.66
#305FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#305FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FD4
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FD4#FFFFFF#000000##FFFFFF
##305FD41.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#007C90
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #305fd4;
/* rgb */ color: rgb(48, 95, 212);
/* oklch */ color: oklch(52.3% 0.188 264.3);
Tailwind
colors: {
  custom: {
    50: '#818be2',
    500: '#305fd4',
    950: '#000000',
  },
}
SCSS
$custom: #305fd4;
$custom-light: #818be2;
$custom-dark: #000000;
JSON
{
  "hex": "#305fd4",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 222.805,
    "s": 65.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52311,
    "c": 0.18777,
    "h": 264.3
  },
  "luminance": 0.13566
}

Semantic roles & 50–950 ramp

primary
#305FD4
secondary
#D4BF8C
accent
#B83FE9
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0C15
muted
#7D7D84

Preview Lab

Preview with #305FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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