#303272#303272

#303272 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.108 H 278.0°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#303272
RGBrgb(48, 50, 114)
HSLhsl(238, 41%, 32%)
HSVhsv(238, 58%, 45%)
CMYKcmyk(57.9%, 56.1%, 0%, 55.3%)
CIE-LABlab(24.08, 19.42, -37.37)
CIE-LCHlch(24.08, 42.12, 297.45°)
OKLaboklab(35.32% 0.015 -0.1069)
OKLCHoklch(35.32% 0.108 278)
XYZxyz(5.3958, 4.1241, 16.4280)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303272 #727030
analogous
#305372 #303272 #4F3072
triadic
#303272 #723032 #327230
tetradic
#303272 #723053 #727030 #30724F
square
#303272 #723053 #727030 #30724F
split-complementary
#303272 #724F30 #537230
monochromatic
#0C0C1C #1E1F47 #303272 #42459D #6063BC

Accessibility & contrast

On white

11.51
#303272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#303272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303272
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303272#FFFFFF#000000##FFFFFF
##3032721.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#003771
Tritanopia (blue-blind)
#0E414D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #303272;
/* rgb */ color: rgb(48, 50, 114);
/* oklch */ color: oklch(35.3% 0.108 278.0);
Tailwind
colors: {
  custom: {
    50: '#6f699b',
    500: '#303272',
    950: '#000000',
  },
}
SCSS
$custom: #303272;
$custom-light: #6f699b;
$custom-dark: #000000;
JSON
{
  "hex": "#303272",
  "rgb": {
    "r": 48,
    "g": 50,
    "b": 114
  },
  "hsl": {
    "h": 238.182,
    "s": 40.741,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35318,
    "c": 0.10798,
    "h": 278
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#303272
secondary
#A3A15B
accent
#CD57D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #303272

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

Preview Lab → · Contrast checker → · Palette generator →

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