#271F7C#271F7C

#271F7C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.149 H 277.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#271F7C
RGBrgb(39, 31, 124)
HSLhsl(245, 60%, 30%)
HSVhsv(245, 75%, 49%)
CMYKcmyk(68.5%, 75%, 0%, 51.4%)
CIE-LABlab(19.50, 33.88, -51.25)
CIE-LCHlch(19.50, 61.44, 303.46°)
OKLaboklab(32.06% 0.0199 -0.148)
OKLCHoklch(32.06% 0.149 277.7)
XYZxyz(4.9636, 2.8661, 19.3565)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F7C #747C1F
analogous
#1F467C #271F7C #551F7C
triadic
#271F7C #7C271F #1F7C27
tetradic
#271F7C #7C1F46 #747C1F #1F7C55
square
#271F7C #7C1F46 #747C1F #1F7C55
split-complementary
#271F7C #7C551F #467C1F
monochromatic
#08071A #18134B #271F7C #362BAD #5145D0

Accessibility & contrast

On white

13.35
#271F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F7C
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F7C#FFFFFF#000000##FFFFFF
##271F7C1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271f7c;
/* rgb */ color: rgb(39, 31, 124);
/* oklch */ color: oklch(32.1% 0.149 277.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ca3',
    500: '#271f7c',
    950: '#000000',
  },
}
SCSS
$custom: #271f7c;
$custom-light: #6e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#271f7c",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 245.161,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32061,
    "c": 0.14934,
    "h": 277.7
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#271F7C
secondary
#A6AF48
accent
#E345D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #271F7C

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

Preview Lab → · Contrast checker → · Palette generator →

#271F7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva