#2A309F#2A309F

#2A309F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.175 H 272.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2A309F
RGBrgb(42, 48, 159)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 74%, 62%)
CMYKcmyk(73.6%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.04, 36.02, -60.60)
CIE-LCHlch(27.04, 70.49, 300.72°)
OKLaboklab(38.59% 0.0073 -0.1753)
OKLCHoklch(38.59% 0.175 272.4)
XYZxyz(8.2677, 5.1085, 33.3445)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A309F #9F992A
analogous
#2A6B9F #2A309F #5F2A9F
triadic
#2A309F #9F2A30 #309F2A
tetradic
#2A309F #9F2A6B #9F992A #2A9F5F
square
#2A309F #9F2A6B #9F992A #2A9F5F
split-complementary
#2A309F #9F5F2A #6B9F2A
monochromatic
#10133E #1D216F #2A309F #3B42CB #6B71D8

Accessibility & contrast

On white

10.39
#2A309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A309F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A309F#FFFFFF#000000##FFFFFF
##2A309F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a309f;
/* rgb */ color: rgb(42, 48, 159);
/* oklch */ color: oklch(38.6% 0.175 272.4);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2a309f',
    950: '#000000',
  },
}
SCSS
$custom: #2a309f;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a309f",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 236.923,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38592,
    "c": 0.17541,
    "h": 272.4
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#2A309F
secondary
#BFBA66
accent
#D946E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A309F

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

Preview Lab → · Contrast checker → · Palette generator →

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