#2A317C#2A317C

#2A317C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.126 H 274.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2A317C
RGBrgb(42, 49, 124)
HSLhsl(235, 49%, 33%)
HSVhsv(235, 66%, 49%)
CMYKcmyk(66.1%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.14, 22.58, -43.65)
CIE-LCHlch(24.14, 49.14, 297.35°)
OKLaboklab(35.5% 0.0088 -0.1256)
OKLCHoklch(35.5% 0.126 274)
XYZxyz(5.6900, 4.1436, 19.5648)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A317C #7C752A
analogous
#2A5A7C #2A317C #4C2A7C
triadic
#2A317C #7C2A31 #317C2A
tetradic
#2A317C #7C2A5A #7C752A #2A7C4C
square
#2A317C #7C2A5A #7C752A #2A7C4C
split-complementary
#2A317C #7C4C2A #5A7C2A
monochromatic
#0B0D21 #1B1F4E #2A317C #3943AA #5963C7

Accessibility & contrast

On white

11.48
#2A317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A317C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A317C#FFFFFF#000000##FFFFFF
##2A317C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a317c;
/* rgb */ color: rgb(42, 49, 124);
/* oklch */ color: oklch(35.5% 0.126 274.0);
Tailwind
colors: {
  custom: {
    50: '#6e69a3',
    500: '#2a317c',
    950: '#000000',
  },
}
SCSS
$custom: #2a317c;
$custom-light: #6e69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a317c",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 234.878,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35497,
    "c": 0.12589,
    "h": 274
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#2A317C
secondary
#ADA555
accent
#CD4FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A317C

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

Preview Lab → · Contrast checker → · Palette generator →

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