#272883#272883

#272883 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.148 H 274.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#272883
RGBrgb(39, 40, 131)
HSLhsl(239, 54%, 33%)
HSVhsv(239, 70%, 51%)
CMYKcmyk(70.2%, 69.5%, 0%, 48.6%)
CIE-LABlab(22.26, 30.71, -51.15)
CIE-LCHlch(22.26, 59.66, 300.98°)
OKLaboklab(34.25% 0.0124 -0.1477)
OKLCHoklch(34.25% 0.148 274.8)
XYZxyz(5.6909, 3.5871, 21.8608)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#272883 #838227
analogous
#275683 #272883 #542783
triadic
#272883 #832728 #288327
tetradic
#272883 #832756 #838227 #278354
square
#272883 #832756 #838227 #278354
split-complementary
#272883 #835427 #568327
monochromatic
#0B0B25 #191A54 #272883 #3536B2 #5759CD

Accessibility & contrast

On white

12.23
#272883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#272883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #272883
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##272883#FFFFFF#000000##FFFFFF
##2728831.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #272883;
/* rgb */ color: rgb(39, 40, 131);
/* oklch */ color: oklch(34.3% 0.148 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f62a8',
    500: '#272883',
    950: '#000000',
  },
}
SCSS
$custom: #272883;
$custom-light: #6f62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#272883",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 239.348,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.14825,
    "h": 274.8
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#272883
secondary
#B2B154
accent
#DC4ADD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #272883

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

Preview Lab → · Contrast checker → · Palette generator →

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