#271975#271975

#271975 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.147 H 280.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#271975
RGBrgb(39, 25, 117)
HSLhsl(249, 65%, 28%)
HSVhsv(249, 79%, 46%)
CMYKcmyk(66.7%, 78.6%, 0%, 54.1%)
CIE-LABlab(17.51, 35.02, -50.05)
CIE-LCHlch(17.51, 61.08, 304.98°)
OKLaboklab(30.43% 0.0256 -0.1444)
OKLCHoklch(30.43% 0.147 280.1)
XYZxyz(4.3942, 2.4106, 17.0599)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271975 #677519
analogous
#193975 #271975 #551975
triadic
#271975 #752719 #197527
tetradic
#271975 #751939 #677519 #197555
square
#271975 #751939 #677519 #197555
split-complementary
#271975 #755519 #397519
monochromatic
#080519 #160E43 #271975 #3824A7 #4D35D4

Accessibility & contrast

On white

14.17
#271975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271975
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271975#FFFFFF#000000##FFFFFF
##2719751.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271975;
/* rgb */ color: rgb(39, 25, 117);
/* oklch */ color: oklch(30.4% 0.147 280.1);
Tailwind
colors: {
  custom: {
    50: '#6d589e',
    500: '#271975',
    950: '#000000',
  },
}
SCSS
$custom: #271975;
$custom-light: #6d589e;
$custom-dark: #000000;
JSON
{
  "hex": "#271975",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 249.13,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30428,
    "c": 0.14671,
    "h": 280.1
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#271975
secondary
#9AAA40
accent
#E840CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271975

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

Preview Lab → · Contrast checker → · Palette generator →

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