#283271#283271

#283271 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.109 H 272.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#283271
RGBrgb(40, 50, 113)
HSLhsl(232, 48%, 30%)
HSVhsv(232, 65%, 44%)
CMYKcmyk(64.6%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.42, 17.38, -37.83)
CIE-LCHlch(23.42, 41.63, 294.68°)
OKLaboklab(34.65% 0.005 -0.1085)
OKLCHoklch(34.65% 0.109 272.7)
XYZxyz(4.9953, 3.9242, 16.1138)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283271 #716728
analogous
#285671 #283271 #432871
triadic
#283271 #712832 #327128
tetradic
#283271 #712856 #716728 #287143
square
#283271 #712856 #716728 #287143
split-complementary
#283271 #714328 #567128
monochromatic
#080A17 #181E44 #283271 #38469E #5261C2

Accessibility & contrast

On white

11.76
#283271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#283271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283271
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283271#FFFFFF#000000##FFFFFF
##2832711.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3B73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #283271;
/* rgb */ color: rgb(40, 50, 113);
/* oklch */ color: oklch(34.6% 0.109 272.7);
Tailwind
colors: {
  custom: {
    50: '#6a699a',
    500: '#283271',
    950: '#000000',
  },
}
SCSS
$custom: #283271;
$custom-light: #6a699a;
$custom-dark: #000000;
JSON
{
  "hex": "#283271",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 231.781,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.34649,
    "c": 0.1086,
    "h": 272.7
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#283271
secondary
#A39852
accent
#C550D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #283271

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

Preview Lab → · Contrast checker → · Palette generator →

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