#2A317A#2A317A

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

Color values

HEX#2A317A
RGBrgb(42, 49, 122)
HSLhsl(235, 49%, 32%)
HSVhsv(235, 66%, 48%)
CMYKcmyk(65.6%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.98, 21.83, -42.65)
CIE-LCHlch(23.98, 47.91, 297.11°)
OKLaboklab(35.33% 0.0088 -0.1226)
OKLCHoklch(35.33% 0.123 274.1)
XYZxyz(5.5649, 4.0935, 18.9055)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A317A #7A732A
analogous
#2A597A #2A317A #4B2A7A
triadic
#2A317A #7A2A31 #317A2A
tetradic
#2A317A #7A2A59 #7A732A #2A7A4B
square
#2A317A #7A2A59 #7A732A #2A7A4B
split-complementary
#2A317A #7A4B2A #597A2A
monochromatic
#0B0C1F #1A1F4C #2A317A #3A43A8 #5962C6

Accessibility & contrast

On white

11.55
#2A317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A317A
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A317A#FFFFFF#000000##FFFFFF
##2A317A1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a317a;
/* rgb */ color: rgb(42, 49, 122);
/* oklch */ color: oklch(35.3% 0.123 274.1);
Tailwind
colors: {
  custom: {
    50: '#6d69a1',
    500: '#2a317a',
    950: '#000000',
  },
}
SCSS
$custom: #2a317a;
$custom-light: #6d69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a317a",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 234.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35325,
    "c": 0.12295,
    "h": 274.1
  },
  "luminance": 0.04094
}

Semantic roles & 50–950 ramp

primary
#2A317A
secondary
#ABA455
accent
#CC4FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A317A

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

Preview Lab → · Contrast checker → · Palette generator →

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