#2A315E#2A315E

#2A315E is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.1% C 0.079 H 274.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2A315E
RGBrgb(42, 49, 94)
HSLhsl(232, 38%, 27%)
HSVhsv(232, 55%, 37%)
CMYKcmyk(55.3%, 47.9%, 0%, 63.1%)
CIE-LABlab(21.93, 11.46, -27.88)
CIE-LCHlch(21.93, 30.15, 292.35°)
OKLaboklab(33.13% 0.0063 -0.0792)
OKLCHoklch(33.13% 0.079 274.6)
XYZxyz(4.0729, 3.4968, 11.0478)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A315E #5E572A
analogous
#2A4B5E #2A315E #3D2A5E
triadic
#2A315E #5E2A31 #315E2A
tetradic
#2A315E #5E2A4B #5E572A #2A5E3D
square
#2A315E #5E2A4B #5E572A #2A5E3D
split-complementary
#2A315E #5E3D2A #4B5E2A
monochromatic
#090B15 #171B34 #2A315E #3D4788 #515EB1

Accessibility & contrast

On white

12.36
#2A315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A315E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A315E#FFFFFF#000000##FFFFFF
##2A315E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3760
Deuteranopia (green-blind)
#18325D
Tritanopia (blue-blind)
#133B43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a315e;
/* rgb */ color: rgb(42, 49, 94);
/* oklch */ color: oklch(33.1% 0.079 274.6);
Tailwind
colors: {
  custom: {
    50: '#68688c',
    500: '#2a315e',
    950: '#000000',
  },
}
SCSS
$custom: #2a315e;
$custom-light: #68688c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a315e",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 231.923,
    "s": 38.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.07946,
    "h": 274.6
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#2A315E
secondary
#908853
accent
#BE5ACE
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2A315E

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

Preview Lab → · Contrast checker → · Palette generator →

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