#304183#304183

#304183 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.8% C 0.112 H 269.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#304183
RGBrgb(48, 65, 131)
HSLhsl(228, 46%, 35%)
HSVhsv(228, 63%, 51%)
CMYKcmyk(63.4%, 50.4%, 0%, 48.6%)
CIE-LABlab(29.53, 15.35, -39.31)
CIE-LCHlch(29.53, 42.20, 291.33°)
OKLaboklab(39.82% -0.0004 -0.1124)
OKLCHoklch(39.82% 0.112 269.8)
XYZxyz(7.2046, 6.0471, 22.2559)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304183 #837230
analogous
#306A83 #304183 #493083
triadic
#304183 #833041 #418330
tetradic
#304183 #83306A #837230 #308349
square
#304183 #83306A #837230 #308349
split-complementary
#304183 #834930 #6A8330
monochromatic
#0F1529 #202B56 #304183 #4057B0 #667AC7

Accessibility & contrast

On white

9.50
#304183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#304183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304183
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304183#FFFFFF#000000##FFFFFF
##3041831.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4985
Deuteranopia (green-blind)
#0F4282
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304183;
/* rgb */ color: rgb(48, 65, 131);
/* oklch */ color: oklch(39.8% 0.112 269.8);
Tailwind
colors: {
  custom: {
    50: '#7175a7',
    500: '#304183',
    950: '#000000',
  },
}
SCSS
$custom: #304183;
$custom-light: #7175a7;
$custom-dark: #000000;
JSON
{
  "hex": "#304183",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 131
  },
  "hsl": {
    "h": 227.711,
    "s": 46.369,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.11245,
    "h": 269.8
  },
  "luminance": 0.06048
}

Semantic roles & 50–950 ramp

primary
#304183
secondary
#AE9E61
accent
#BB52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #304183

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

Preview Lab → · Contrast checker → · Palette generator →

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