#31306F#31306F

#31306F is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.106 H 280.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#31306F
RGBrgb(49, 48, 111)
HSLhsl(241, 40%, 31%)
HSVhsv(241, 57%, 44%)
CMYKcmyk(55.9%, 56.8%, 0%, 56.5%)
CIE-LABlab(23.39, 19.95, -36.56)
CIE-LCHlch(23.39, 41.65, 298.61°)
OKLaboklab(34.75% 0.0185 -0.1045)
OKLCHoklch(34.75% 0.106 280)
XYZxyz(5.1919, 3.9143, 15.5178)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31306F #6E6F30
analogous
#304E6F #31306F #50306F
triadic
#31306F #6F3130 #306F31
tetradic
#31306F #6F304E #6E6F30 #306F50
square
#31306F #6F304E #6E6F30 #306F50
split-complementary
#31306F #6F5030 #4E6F30
monochromatic
#0B0B1A #1E1E44 #31306F #44429A #615FBA

Accessibility & contrast

On white

11.78
#31306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#31306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31306F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31306F#FFFFFF#000000##FFFFFF
##31306F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A71
Deuteranopia (green-blind)
#02356E
Tritanopia (blue-blind)
#163E4A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31306f;
/* rgb */ color: rgb(49, 48, 111);
/* oklch */ color: oklch(34.8% 0.106 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f6899',
    500: '#31306f',
    950: '#000000',
  },
}
SCSS
$custom: #31306f;
$custom-light: #6f6899;
$custom-dark: #000000;
JSON
{
  "hex": "#31306f",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 240.952,
    "s": 39.623,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34751,
    "c": 0.10616,
    "h": 280
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#31306F
secondary
#9FA05B
accent
#D058CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #31306F

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

Preview Lab → · Contrast checker → · Palette generator →

#31306F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva