#31268B#31268B

#31268B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.159 H 279.4°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#31268B
RGBrgb(49, 38, 139)
HSLhsl(247, 57%, 35%)
HSVhsv(247, 73%, 55%)
CMYKcmyk(64.7%, 72.7%, 0%, 45.5%)
CIE-LABlab(23.35, 36.10, -54.34)
CIE-LCHlch(23.35, 65.24, 303.60°)
OKLaboklab(35.47% 0.0261 -0.1568)
OKLCHoklch(35.47% 0.159 279.4)
XYZxyz(6.6184, 3.9028, 24.8256)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31268B #808B26
analogous
#264D8B #31268B #64268B
triadic
#31268B #8B3126 #268B31
tetradic
#31268B #8B264D #808B26 #268B64
square
#31268B #8B264D #808B26 #268B64
split-complementary
#31268B #8B6426 #4D8B26
monochromatic
#0F0C2B #20195B #31268B #4233BB #675AD2

Accessibility & contrast

On white

11.79
#31268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#31268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31268B
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31268B#FFFFFF#000000##FFFFFF
##31268B1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31268b;
/* rgb */ color: rgb(49, 38, 139);
/* oklch */ color: oklch(35.5% 0.159 279.4);
Tailwind
colors: {
  custom: {
    50: '#7562ae',
    500: '#31268b',
    950: '#000000',
  },
}
SCSS
$custom: #31268b;
$custom-light: #7562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31268b",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 246.535,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35472,
    "c": 0.15892,
    "h": 279.4
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#31268B
secondary
#ACB756
accent
#E047D0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #31268B

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

Preview Lab → · Contrast checker → · Palette generator →

#31268B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva