#2A317F#2A317F

#2A317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.130 H 273.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2A317F
RGBrgb(42, 49, 127)
HSLhsl(235, 50%, 33%)
HSVhsv(235, 67%, 50%)
CMYKcmyk(66.9%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.39, 23.69, -45.14)
CIE-LCHlch(24.39, 50.98, 297.69°)
OKLaboklab(35.76% 0.0088 -0.13)
OKLCHoklch(35.76% 0.13 273.9)
XYZxyz(5.8827, 4.2207, 20.5792)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A317F #7F782A
analogous
#2A5B7F #2A317F #4D2A7F
triadic
#2A317F #7F2A31 #317F2A
tetradic
#2A317F #7F2A5B #7F782A #2A7F4D
square
#2A317F #7F2A5B #7F782A #2A7F4D
split-complementary
#2A317F #7F4D2A #5B7F2A
monochromatic
#0C0E23 #1B1F51 #2A317F #3943AD #5B64C9

Accessibility & contrast

On white

11.39
#2A317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A317F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A317F#FFFFFF#000000##FFFFFF
##2A317F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a317f;
/* rgb */ color: rgb(42, 49, 127);
/* oklch */ color: oklch(35.8% 0.130 273.9);
Tailwind
colors: {
  custom: {
    50: '#6e69a5',
    500: '#2a317f',
    950: '#000000',
  },
}
SCSS
$custom: #2a317f;
$custom-light: #6e69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a317f",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 235.059,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35758,
    "c": 0.13026,
    "h": 273.9
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#2A317F
secondary
#AEA757
accent
#CE4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A317F

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

Preview Lab → · Contrast checker → · Palette generator →

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