#31267C#31267C

#31267C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.139 H 281.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#31267C
RGBrgb(49, 38, 124)
HSLhsl(248, 53%, 32%)
HSVhsv(248, 69%, 49%)
CMYKcmyk(60.5%, 69.4%, 0%, 51.4%)
CIE-LABlab(21.92, 31.06, -47.24)
CIE-LCHlch(21.92, 56.54, 303.32°)
OKLaboklab(34.01% 0.0286 -0.136)
OKLCHoklch(34.01% 0.139 281.9)
XYZxyz(5.5967, 3.4941, 19.4444)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31267C #717C26
analogous
#26467C #31267C #5C267C
triadic
#31267C #7C3126 #267C31
tetradic
#31267C #7C2646 #717C26 #267C5C
square
#31267C #7C2646 #717C26 #267C5C
split-complementary
#31267C #7C5C26 #467C26
monochromatic
#0C091E #1E184D #31267C #4434AB #6252CA

Accessibility & contrast

On white

12.36
#31267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31267C
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31267C#FFFFFF#000000##FFFFFF
##31267C1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#033C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31267c;
/* rgb */ color: rgb(49, 38, 124);
/* oklch */ color: oklch(34.0% 0.139 281.9);
Tailwind
colors: {
  custom: {
    50: '#7261a3',
    500: '#31267c',
    950: '#000000',
  },
}
SCSS
$custom: #31267c;
$custom-light: #7261a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31267c",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 247.674,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34013,
    "c": 0.13895,
    "h": 281.9
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#31267C
secondary
#A2AE50
accent
#DC4BCA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31267C

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

Preview Lab → · Contrast checker → · Palette generator →

#31267C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva