#31269F#31269F

#31269F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.184 H 276.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#31269F
RGBrgb(49, 38, 159)
HSLhsl(245, 61%, 39%)
HSVhsv(245, 76%, 62%)
CMYKcmyk(69.2%, 76.1%, 0%, 37.6%)
CIE-LABlab(25.39, 42.68, -63.31)
CIE-LCHlch(25.39, 76.35, 303.99°)
OKLaboklab(37.53% 0.0219 -0.1829)
OKLCHoklch(37.53% 0.184 276.8)
XYZxyz(8.2157, 4.5417, 33.2378)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31269F #949F26
analogous
#26579F #31269F #6D269F
triadic
#31269F #9F3126 #269F31
tetradic
#31269F #9F2657 #949F26 #269F6D
square
#31269F #9F2657 #949F26 #269F6D
split-complementary
#31269F #9F6D26 #579F26
monochromatic
#130E3C #221A6E #31269F #4234CE #7065DA

Accessibility & contrast

On white

11.00
#31269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31269F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31269F#FFFFFF#000000##FFFFFF
##31269F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31269f;
/* rgb */ color: rgb(49, 38, 159);
/* oklch */ color: oklch(37.5% 0.184 276.8);
Tailwind
colors: {
  custom: {
    50: '#7963bd',
    500: '#31269f',
    950: '#000000',
  },
}
SCSS
$custom: #31269f;
$custom-light: #7963bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31269f",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 245.455,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37533,
    "c": 0.18424,
    "h": 276.8
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#31269F
secondary
#B7C061
accent
#E543D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31269F

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

Preview Lab → · Contrast checker → · Palette generator →

#31269F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva