#303271#303271

#303271 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.106 H 278.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#303271
RGBrgb(48, 50, 113)
HSLhsl(238, 40%, 32%)
HSVhsv(238, 58%, 44%)
CMYKcmyk(57.5%, 55.8%, 0%, 55.7%)
CIE-LABlab(24.00, 19.06, -36.85)
CIE-LCHlch(24.00, 41.49, 297.35°)
OKLaboklab(35.24% 0.0149 -0.1054)
OKLCHoklch(35.24% 0.106 278.1)
XYZxyz(5.3392, 4.1015, 16.1299)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303271 #716F30
analogous
#305371 #303271 #4F3071
triadic
#303271 #713032 #327130
tetradic
#303271 #713053 #716F30 #30714F
square
#303271 #713053 #716F30 #30714F
split-complementary
#303271 #714F30 #537130
monochromatic
#0C0C1B #1E1F46 #303271 #42459C #6063BB

Accessibility & contrast

On white

11.54
#303271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303271
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303271#FFFFFF#000000##FFFFFF
##3032711.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#10404C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #303271;
/* rgb */ color: rgb(48, 50, 113);
/* oklch */ color: oklch(35.2% 0.106 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e699a',
    500: '#303271',
    950: '#000000',
  },
}
SCSS
$custom: #303271;
$custom-light: #6e699a;
$custom-dark: #000000;
JSON
{
  "hex": "#303271",
  "rgb": {
    "r": 48,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 238.154,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35239,
    "c": 0.10644,
    "h": 278.1
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#303271
secondary
#A2A05B
accent
#CD58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #303271

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

Preview Lab → · Contrast checker → · Palette generator →

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