#271883#271883

#271883 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.165 H 277.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#271883
RGBrgb(39, 24, 131)
HSLhsl(248, 69%, 30%)
HSVhsv(248, 82%, 51%)
CMYKcmyk(70.2%, 81.7%, 0%, 48.6%)
CIE-LABlab(18.90, 40.10, -56.69)
CIE-LCHlch(18.90, 69.44, 305.28°)
OKLaboklab(31.87% 0.0223 -0.1638)
OKLCHoklch(31.87% 0.165 277.8)
XYZxyz(5.2587, 2.7228, 21.7168)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271883 #748318
analogous
#183F83 #271883 #5C1883
triadic
#271883 #832718 #188327
tetradic
#271883 #83183F #748318 #18835C
square
#271883 #83183F #748318 #18835C
split-complementary
#271883 #835C18 #3F8318
monochromatic
#08051C #180F4F #271883 #3621B7 #513ADB

Accessibility & contrast

On white

13.60
#271883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#271883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271883
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271883#FFFFFF#000000##FFFFFF
##2718831.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #271883;
/* rgb */ color: rgb(39, 24, 131);
/* oklch */ color: oklch(31.9% 0.165 277.8);
Tailwind
colors: {
  custom: {
    50: '#7058a8',
    500: '#271883',
    950: '#000000',
  },
}
SCSS
$custom: #271883;
$custom-light: #7058a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271883",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 248.411,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.16528,
    "h": 277.8
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#271883
secondary
#A6B740
accent
#EC3CD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271883

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

Preview Lab → · Contrast checker → · Palette generator →

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