#305183#305183

#305183 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.092 H 258.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#305183
RGBrgb(48, 81, 131)
HSLhsl(216, 46%, 35%)
HSVhsv(216, 63%, 51%)
CMYKcmyk(63.4%, 38.2%, 0%, 48.6%)
CIE-LABlab(34.30, 4.65, -31.71)
CIE-LCHlch(34.30, 32.05, 278.34°)
OKLaboklab(43.48% -0.0183 -0.0899)
OKLCHoklch(43.48% 0.092 258.5)
XYZxyz(8.2566, 8.1512, 22.6065)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305183 #836230
analogous
#307A83 #305183 #393083
triadic
#305183 #833051 #518330
tetradic
#305183 #83307A #836230 #308339
square
#305183 #83307A #836230 #308339
split-complementary
#305183 #833930 #7A8330
monochromatic
#0F1A29 #203556 #305183 #406DB0 #668DC7

Accessibility & contrast

On white

7.98
#305183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#305183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305183
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305183#FFFFFF#000000##FFFFFF
##3051831.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5585
Deuteranopia (green-blind)
#304D82
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305183;
/* rgb */ color: rgb(48, 81, 131);
/* oklch */ color: oklch(43.5% 0.092 258.5);
Tailwind
colors: {
  custom: {
    50: '#7081a7',
    500: '#305183',
    950: '#000000',
  },
}
SCSS
$custom: #305183;
$custom-light: #7081a7;
$custom-dark: #000000;
JSON
{
  "hex": "#305183",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 131
  },
  "hsl": {
    "h": 216.145,
    "s": 46.369,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43483,
    "c": 0.09179,
    "h": 258.5
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#305183
secondary
#AE8F61
accent
#A152D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #305183

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

Preview Lab → · Contrast checker → · Palette generator →

#305183 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva