#2A309E#2A309E

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

Color values

HEX#2A309E
RGBrgb(42, 48, 158)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 73%, 62%)
CMYKcmyk(73.4%, 69.6%, 0%, 38%)
CIE-LABlab(26.94, 35.66, -60.15)
CIE-LCHlch(26.94, 69.93, 300.66°)
OKLaboklab(38.49% 0.0074 -0.1739)
OKLCHoklch(38.49% 0.174 272.4)
XYZxyz(8.1813, 5.0739, 32.8893)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A309E #9E982A
analogous
#2A6A9E #2A309E #5E2A9E
triadic
#2A309E #9E2A30 #309E2A
tetradic
#2A309E #9E2A6A #9E982A #2A9E5E
square
#2A309E #9E2A6A #9E982A #2A9E5E
split-complementary
#2A309E #9E5E2A #6A9E2A
monochromatic
#10133D #1D216E #2A309E #3A42CB #6B70D8

Accessibility & contrast

On white

10.42
#2A309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A309E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A309E#FFFFFF#000000##FFFFFF
##2A309E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a309e;
/* rgb */ color: rgb(42, 48, 158);
/* oklch */ color: oklch(38.5% 0.174 272.4);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2a309e',
    950: '#000000',
  },
}
SCSS
$custom: #2a309e;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a309e",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 236.897,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38492,
    "c": 0.17411,
    "h": 272.4
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

primary
#2A309E
secondary
#BEBA66
accent
#D947E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A309E

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

Preview Lab → · Contrast checker → · Palette generator →

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