#31357A#31357A

#31357A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.6% C 0.115 H 276.6°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#31357A
RGBrgb(49, 53, 122)
HSLhsl(237, 43%, 34%)
HSVhsv(237, 60%, 48%)
CMYKcmyk(59.8%, 56.6%, 0%, 52.2%)
CIE-LABlab(25.58, 20.45, -40.04)
CIE-LCHlch(25.58, 44.96, 297.06°)
OKLaboklab(36.65% 0.0132 -0.1147)
OKLCHoklch(36.65% 0.115 276.6)
XYZxyz(6.0514, 4.6039, 18.9783)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31357A #7A7631
analogous
#31597A #31357A #51317A
triadic
#31357A #7A3135 #357A31
tetradic
#31357A #7A3159 #7A7631 #317A51
square
#31357A #7A3159 #7A7631 #317A51
split-complementary
#31357A #7A5131 #597A31
monochromatic
#0E0F23 #1F224E #31357A #4348A6 #646AC1

Accessibility & contrast

On white

10.93
#31357A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31357A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31357A
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31357A#FFFFFF#000000##FFFFFF
##31357A1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407C
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#034552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31357a;
/* rgb */ color: rgb(49, 53, 122);
/* oklch */ color: oklch(36.6% 0.115 276.6);
Tailwind
colors: {
  custom: {
    50: '#706ca1',
    500: '#31357a',
    950: '#000000',
  },
}
SCSS
$custom: #31357a;
$custom-light: #706ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#31357a",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 122
  },
  "hsl": {
    "h": 236.712,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36647,
    "c": 0.11547,
    "h": 276.6
  },
  "luminance": 0.04604
}

Semantic roles & 50–950 ramp

primary
#31357A
secondary
#A8A45E
accent
#CC55D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31357A

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

Preview Lab → · Contrast checker → · Palette generator →

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