#271895#271895

#271895 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.187 H 275.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#271895
RGBrgb(39, 24, 149)
HSLhsl(247, 72%, 34%)
HSVhsv(247, 84%, 58%)
CMYKcmyk(73.8%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.03, 45.74, -64.40)
CIE-LCHlch(21.03, 78.99, 305.39°)
OKLaboklab(33.97% 0.017 -0.1862)
OKLCHoklch(33.97% 0.187 275.2)
XYZxyz(6.5864, 3.2539, 28.7089)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271895 #869518
analogous
#184895 #271895 #661895
triadic
#271895 #952718 #189527
tetradic
#271895 #951848 #869518 #189566
square
#271895 #951848 #869518 #189566
split-complementary
#271895 #956618 #489518
monochromatic
#0B072C #191060 #271895 #3520CA #5946E1

Accessibility & contrast

On white

12.72
#271895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#271895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271895
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271895#FFFFFF#000000##FFFFFF
##2718951.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002D93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #271895;
/* rgb */ color: rgb(39, 24, 149);
/* oklch */ color: oklch(34.0% 0.187 275.2);
Tailwind
colors: {
  custom: {
    50: '#745ab5',
    500: '#271895',
    950: '#000000',
  },
}
SCSS
$custom: #271895;
$custom-light: #745ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#271895",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 247.2,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.18695,
    "h": 275.2
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#271895
secondary
#B4C246
accent
#EF39D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #271895

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

Preview Lab → · Contrast checker → · Palette generator →

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