#2A317B#2A317B

#2A317B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.124 H 274.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2A317B
RGBrgb(42, 49, 123)
HSLhsl(235, 49%, 32%)
HSVhsv(235, 66%, 48%)
CMYKcmyk(65.9%, 60.2%, 0%, 51.8%)
CIE-LABlab(24.06, 22.20, -43.15)
CIE-LCHlch(24.06, 48.53, 297.23°)
OKLaboklab(35.41% 0.0088 -0.1241)
OKLCHoklch(35.41% 0.124 274.1)
XYZxyz(5.6271, 4.1185, 19.2335)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A317B #7B742A
analogous
#2A597B #2A317B #4C2A7B
triadic
#2A317B #7B2A31 #317B2A
tetradic
#2A317B #7B2A59 #7B742A #2A7B4C
square
#2A317B #7B2A59 #7B742A #2A7B4C
split-complementary
#2A317B #7B4C2A #597B2A
monochromatic
#0B0D20 #1A1F4D #2A317B #3A43A9 #5963C6

Accessibility & contrast

On white

11.51
#2A317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A317B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A317B#FFFFFF#000000##FFFFFF
##2A317B1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a317b;
/* rgb */ color: rgb(42, 49, 123);
/* oklch */ color: oklch(35.4% 0.124 274.1);
Tailwind
colors: {
  custom: {
    50: '#6d69a2',
    500: '#2a317b',
    950: '#000000',
  },
}
SCSS
$custom: #2a317b;
$custom-light: #6d69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a317b",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 234.815,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35411,
    "c": 0.12441,
    "h": 274.1
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#2A317B
secondary
#ACA455
accent
#CD4FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A317B

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

Preview Lab → · Contrast checker → · Palette generator →

#2A317B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva