#305AA7#305AA7

#305AA7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.133 H 261.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#305AA7
RGBrgb(48, 90, 167)
HSLhsl(219, 55%, 42%)
HSVhsv(219, 71%, 65%)
CMYKcmyk(71.3%, 46.1%, 0%, 34.5%)
CIE-LABlab(39.12, 12.18, -45.77)
CIE-LCHlch(39.12, 47.36, 284.90°)
OKLaboklab(47.91% -0.0199 -0.1311)
OKLCHoklch(47.91% 0.133 261.3)
XYZxyz(11.8476, 10.7295, 37.9983)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AA7 #A77D30
analogous
#3095A7 #305AA7 #4230A7
triadic
#305AA7 #A7305A #5AA730
tetradic
#305AA7 #A73095 #A77D30 #30A742
square
#305AA7 #A73095 #A77D30 #30A742
split-complementary
#305AA7 #A74230 #95A730
monochromatic
#152748 #224077 #305AA7 #4977CB #799BD8

Accessibility & contrast

On white

6.67
#305AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#305AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AA7
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AA7#FFFFFF#000000##FFFFFF
##305AA71.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#1B57A5
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305aa7;
/* rgb */ color: rgb(48, 90, 167);
/* oklch */ color: oklch(47.9% 0.133 261.3);
Tailwind
colors: {
  custom: {
    50: '#7788c2',
    500: '#305aa7',
    950: '#000000',
  },
}
SCSS
$custom: #305aa7;
$custom-light: #7788c2;
$custom-dark: #000000;
JSON
{
  "hex": "#305aa7",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 167
  },
  "hsl": {
    "h": 218.824,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47912,
    "c": 0.13258,
    "h": 261.3
  },
  "luminance": 0.10731
}

Semantic roles & 50–950 ramp

primary
#305AA7
secondary
#C1A572
accent
#AA49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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