#31268C#31268C

#31268C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.160 H 279.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#31268C
RGBrgb(49, 38, 140)
HSLhsl(246, 57%, 35%)
HSVhsv(246, 73%, 55%)
CMYKcmyk(65%, 72.9%, 0%, 45.1%)
CIE-LABlab(23.45, 36.44, -54.80)
CIE-LCHlch(23.45, 65.81, 303.62°)
OKLaboklab(35.57% 0.0259 -0.1581)
OKLCHoklch(35.57% 0.16 279.3)
XYZxyz(6.6918, 3.9321, 25.2122)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31268C #818C26
analogous
#264E8C #31268C #64268C
triadic
#31268C #8C3126 #268C31
tetradic
#31268C #8C264E #818C26 #268C64
square
#31268C #8C264E #818C26 #268C64
split-complementary
#31268C #8C6426 #4E8C26
monochromatic
#0F0C2C #20195C #31268C #4233BC #675AD2

Accessibility & contrast

On white

11.75
#31268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#31268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31268C
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31268C#FFFFFF#000000##FFFFFF
##31268C1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31268c;
/* rgb */ color: rgb(49, 38, 140);
/* oklch */ color: oklch(35.6% 0.160 279.3);
Tailwind
colors: {
  custom: {
    50: '#7562af',
    500: '#31268c',
    950: '#000000',
  },
}
SCSS
$custom: #31268c;
$custom-light: #7562af;
$custom-dark: #000000;
JSON
{
  "hex": "#31268c",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 246.471,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35572,
    "c": 0.16022,
    "h": 279.3
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#31268C
secondary
#ADB757
accent
#E147D0
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #31268C

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

Preview Lab → · Contrast checker → · Palette generator →

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