#271875#271875

#271875 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.148 H 280.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#271875
RGBrgb(39, 24, 117)
HSLhsl(250, 66%, 28%)
HSVhsv(250, 79%, 46%)
CMYKcmyk(66.7%, 79.5%, 0%, 54.1%)
CIE-LABlab(17.31, 35.57, -50.37)
CIE-LCHlch(17.31, 61.66, 305.23°)
OKLaboklab(30.29% 0.0263 -0.1454)
OKLCHoklch(30.29% 0.148 280.3)
XYZxyz(4.3732, 2.3686, 17.0529)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271875 #667518
analogous
#183875 #271875 #551875
triadic
#271875 #752718 #187527
tetradic
#271875 #751838 #667518 #187555
square
#271875 #751838 #667518 #187555
split-complementary
#271875 #755518 #387518
monochromatic
#080519 #160E42 #271875 #3822A8 #4D32D5

Accessibility & contrast

On white

14.25
#271875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271875
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271875#FFFFFF#000000##FFFFFF
##2718751.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.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: #271875;
/* rgb */ color: rgb(39, 24, 117);
/* oklch */ color: oklch(30.3% 0.148 280.3);
Tailwind
colors: {
  custom: {
    50: '#6d579e',
    500: '#271875',
    950: '#000000',
  },
}
SCSS
$custom: #271875;
$custom-light: #6d579e;
$custom-dark: #000000;
JSON
{
  "hex": "#271875",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 249.677,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3029,
    "c": 0.14774,
    "h": 280.3
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#271875
secondary
#99AA3F
accent
#E93FCD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271875

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

Preview Lab → · Contrast checker → · Palette generator →

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