#31269A#31269A

#31269A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.178 H 277.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#31269A
RGBrgb(49, 38, 154)
HSLhsl(246, 60%, 38%)
HSVhsv(246, 75%, 60%)
CMYKcmyk(68.2%, 75.3%, 0%, 39.6%)
CIE-LABlab(24.86, 41.06, -61.12)
CIE-LCHlch(24.86, 73.63, 303.89°)
OKLaboklab(37.01% 0.023 -0.1766)
OKLCHoklch(37.01% 0.178 277.4)
XYZxyz(7.7906, 4.3716, 30.9988)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31269A #8F9A26
analogous
#26559A #31269A #6B269A
triadic
#31269A #9A3126 #269A31
tetradic
#31269A #9A2655 #8F9A26 #269A6B
square
#31269A #9A2655 #8F9A26 #269A6B
split-complementary
#31269A #9A6B26 #559A26
monochromatic
#120E38 #211A69 #31269A #4132CB #6D62D8

Accessibility & contrast

On white

11.20
#31269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31269A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31269A#FFFFFF#000000##FFFFFF
##31269A1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31269a;
/* rgb */ color: rgb(49, 38, 154);
/* oklch */ color: oklch(37.0% 0.178 277.4);
Tailwind
colors: {
  custom: {
    50: '#7862b9',
    500: '#31269a',
    950: '#000000',
  },
}
SCSS
$custom: #31269a;
$custom-light: #7862b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31269a",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 245.69,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37007,
    "c": 0.17804,
    "h": 277.4
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#31269A
secondary
#B5BE5E
accent
#E444D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31269A

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

Preview Lab → · Contrast checker → · Palette generator →

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