#31268E#31268E

#31268E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.163 H 279.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#31268E
RGBrgb(49, 38, 142)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 73%, 56%)
CMYKcmyk(65.5%, 73.2%, 0%, 44.3%)
CIE-LABlab(23.64, 37.10, -55.72)
CIE-LCHlch(23.64, 66.94, 303.66°)
OKLaboklab(35.77% 0.0255 -0.1608)
OKLCHoklch(35.77% 0.163 279)
XYZxyz(6.8407, 3.9916, 25.9959)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31268E #838E26
analogous
#264F8E #31268E #65268E
triadic
#31268E #8E3126 #268E31
tetradic
#31268E #8E264F #838E26 #268E65
square
#31268E #8E264F #838E26 #268E65
split-complementary
#31268E #8E6526 #4F8E26
monochromatic
#100C2D #20195E #31268E #4233BE #685BD3

Accessibility & contrast

On white

11.68
#31268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#31268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31268E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31268E#FFFFFF#000000##FFFFFF
##31268E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31268e;
/* rgb */ color: rgb(49, 38, 142);
/* oklch */ color: oklch(35.8% 0.163 279.0);
Tailwind
colors: {
  custom: {
    50: '#7662b0',
    500: '#31268e',
    950: '#000000',
  },
}
SCSS
$custom: #31268e;
$custom-light: #7662b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31268e",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 246.346,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35774,
    "c": 0.16282,
    "h": 279
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#31268E
secondary
#AEB858
accent
#E147D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #31268E

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

Preview Lab → · Contrast checker → · Palette generator →

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