#2A317D#2A317D

#2A317D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.127 H 274.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2A317D
RGBrgb(42, 49, 125)
HSLhsl(235, 50%, 33%)
HSVhsv(235, 66%, 49%)
CMYKcmyk(66.4%, 60.8%, 0%, 51%)
CIE-LABlab(24.22, 22.95, -44.15)
CIE-LCHlch(24.22, 49.76, 297.47°)
OKLaboklab(35.58% 0.0088 -0.127)
OKLCHoklch(35.58% 0.127 274)
XYZxyz(5.7536, 4.1690, 19.8996)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A317D #7D762A
analogous
#2A5A7D #2A317D #4D2A7D
triadic
#2A317D #7D2A31 #317D2A
tetradic
#2A317D #7D2A5A #7D762A #2A7D4D
square
#2A317D #7D2A5A #7D762A #2A7D4D
split-complementary
#2A317D #7D4D2A #5A7D2A
monochromatic
#0B0D21 #1B1F4F #2A317D #3943AB #5A63C8

Accessibility & contrast

On white

11.45
#2A317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A317D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A317D#FFFFFF#000000##FFFFFF
##2A317D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a317d;
/* rgb */ color: rgb(42, 49, 125);
/* oklch */ color: oklch(35.6% 0.127 274.0);
Tailwind
colors: {
  custom: {
    50: '#6e69a3',
    500: '#2a317d',
    950: '#000000',
  },
}
SCSS
$custom: #2a317d;
$custom-light: #6e69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a317d",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 234.94,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35583,
    "c": 0.12735,
    "h": 274
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#2A317D
secondary
#ADA656
accent
#CE4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A317D

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

Preview Lab → · Contrast checker → · Palette generator →

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