#31269E#31269E

#31269E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.183 H 276.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#31269E
RGBrgb(49, 38, 158)
HSLhsl(246, 61%, 38%)
HSVhsv(246, 76%, 62%)
CMYKcmyk(69%, 75.9%, 0%, 38%)
CIE-LABlab(25.28, 42.36, -62.87)
CIE-LCHlch(25.28, 75.81, 303.97°)
OKLaboklab(37.43% 0.0221 -0.1817)
OKLCHoklch(37.43% 0.183 276.9)
XYZxyz(8.1293, 4.5071, 32.7827)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31269E #939E26
analogous
#26579E #31269E #6D269E
triadic
#31269E #9E3126 #269E31
tetradic
#31269E #9E2657 #939E26 #269E6D
square
#31269E #9E2657 #939E26 #269E6D
split-complementary
#31269E #9E6D26 #579E26
monochromatic
#120E3B #221A6D #31269E #4133CE #6F65DA

Accessibility & contrast

On white

11.04
#31269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#31269E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31269E
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31269E#FFFFFF#000000##FFFFFF
##31269E1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31269e;
/* rgb */ color: rgb(49, 38, 158);
/* oklch */ color: oklch(37.4% 0.183 276.9);
Tailwind
colors: {
  custom: {
    50: '#7963bc',
    500: '#31269e',
    950: '#000000',
  },
}
SCSS
$custom: #31269e;
$custom-light: #7963bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31269e",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 245.5,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37428,
    "c": 0.18301,
    "h": 276.9
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#31269E
secondary
#B7C060
accent
#E443D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31269E

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

Preview Lab → · Contrast checker → · Palette generator →

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