#305AAA#305AAA

#305AAA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.1% C 0.137 H 261.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#305AAA
RGBrgb(48, 90, 170)
HSLhsl(219, 56%, 43%)
HSVhsv(219, 72%, 67%)
CMYKcmyk(71.8%, 47.1%, 0%, 33.3%)
CIE-LABlab(39.31, 13.31, -47.24)
CIE-LCHlch(39.31, 49.08, 285.73°)
OKLaboklab(48.12% -0.0194 -0.1354)
OKLCHoklch(48.12% 0.137 261.8)
XYZxyz(12.1282, 10.8417, 39.4759)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AAA #AA8030
analogous
#3097AA #305AAA #4330AA
triadic
#305AAA #AA305A #5AAA30
tetradic
#305AAA #AA3097 #AA8030 #30AA43
square
#305AAA #AA3097 #AA8030 #30AA43
split-complementary
#305AAA #AA4330 #97AA30
monochromatic
#15274B #23417A #305AAA #4B77CC #7B9BDA

Accessibility & contrast

On white

6.63
#305AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#305AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AAA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AAA#FFFFFF#000000##FFFFFF
##305AAA1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AD
Deuteranopia (green-blind)
#1457A8
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305aaa;
/* rgb */ color: rgb(48, 90, 170);
/* oklch */ color: oklch(48.1% 0.137 261.8);
Tailwind
colors: {
  custom: {
    50: '#7888c4',
    500: '#305aaa',
    950: '#000000',
  },
}
SCSS
$custom: #305aaa;
$custom-light: #7888c4;
$custom-dark: #000000;
JSON
{
  "hex": "#305aaa",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 219.344,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48121,
    "c": 0.13679,
    "h": 261.8
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#305AAA
secondary
#C2A774
accent
#AB49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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