#31269B#31269B

#31269B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.179 H 277.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#31269B
RGBrgb(49, 38, 155)
HSLhsl(246, 61%, 38%)
HSVhsv(246, 75%, 61%)
CMYKcmyk(68.4%, 75.5%, 0%, 39.2%)
CIE-LABlab(24.97, 41.38, -61.56)
CIE-LCHlch(24.97, 74.17, 303.91°)
OKLaboklab(37.11% 0.0228 -0.1778)
OKLCHoklch(37.11% 0.179 277.3)
XYZxyz(7.8742, 4.4051, 31.4393)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31269B #909B26
analogous
#26559B #31269B #6B269B
triadic
#31269B #9B3126 #269B31
tetradic
#31269B #9B2655 #909B26 #269B6B
square
#31269B #9B2655 #909B26 #269B6B
split-complementary
#31269B #9B6B26 #559B26
monochromatic
#120E39 #211A6A #31269B #4132CC #6E63D9

Accessibility & contrast

On white

11.16
#31269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31269B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31269B#FFFFFF#000000##FFFFFF
##31269B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31269b;
/* rgb */ color: rgb(49, 38, 155);
/* oklch */ color: oklch(37.1% 0.179 277.3);
Tailwind
colors: {
  custom: {
    50: '#7962ba',
    500: '#31269b',
    950: '#000000',
  },
}
SCSS
$custom: #31269b;
$custom-light: #7962ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31269b",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 245.641,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.17929,
    "h": 277.3
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#31269B
secondary
#B5BE5F
accent
#E444D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31269B

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

Preview Lab → · Contrast checker → · Palette generator →

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