#2A309B#2A309B

#2A309B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.170 H 272.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2A309B
RGBrgb(42, 48, 155)
HSLhsl(237, 57%, 39%)
HSVhsv(237, 73%, 61%)
CMYKcmyk(72.9%, 69%, 0%, 39.2%)
CIE-LABlab(26.65, 34.59, -58.80)
CIE-LCHlch(26.65, 68.22, 300.47°)
OKLaboklab(38.19% 0.0077 -0.17)
OKLCHoklch(38.19% 0.17 272.6)
XYZxyz(7.9262, 4.9719, 31.5459)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A309B #9B952A
analogous
#2A689B #2A309B #5C2A9B
triadic
#2A309B #9B2A30 #309B2A
tetradic
#2A309B #9B2A68 #9B952A #2A9B5C
square
#2A309B #9B2A68 #9B952A #2A9B5C
split-complementary
#2A309B #9B5C2A #689B2A
monochromatic
#10123B #1D216B #2A309B #3941C9 #696FD6

Accessibility & contrast

On white

10.53
#2A309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A309B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A309B#FFFFFF#000000##FFFFFF
##2A309B1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a309b;
/* rgb */ color: rgb(42, 48, 155);
/* oklch */ color: oklch(38.2% 0.170 272.6);
Tailwind
colors: {
  custom: {
    50: '#7569ba',
    500: '#2a309b',
    950: '#000000',
  },
}
SCSS
$custom: #2a309b;
$custom-light: #7569ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a309b",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 236.814,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38194,
    "c": 0.17018,
    "h": 272.6
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#2A309B
secondary
#BDB864
accent
#D847E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A309B

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

Preview Lab → · Contrast checker → · Palette generator →

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