#2A309A#2A309A

#2A309A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.169 H 272.7°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2A309A
RGBrgb(42, 48, 154)
HSLhsl(237, 57%, 38%)
HSVhsv(237, 73%, 60%)
CMYKcmyk(72.7%, 68.8%, 0%, 39.6%)
CIE-LABlab(26.56, 34.23, -58.34)
CIE-LCHlch(26.56, 67.65, 300.40°)
OKLaboklab(38.1% 0.0078 -0.1687)
OKLCHoklch(38.1% 0.169 272.7)
XYZxyz(7.8426, 4.9385, 31.1055)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A309A #9A942A
analogous
#2A689A #2A309A #5C2A9A
triadic
#2A309A #9A2A30 #309A2A
tetradic
#2A309A #9A2A68 #9A942A #2A9A5C
square
#2A309A #9A2A68 #9A942A #2A9A5C
split-complementary
#2A309A #9A5C2A #689A2A
monochromatic
#10123A #1D216A #2A309A #3840C9 #686ED6

Accessibility & contrast

On white

10.56
#2A309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A309A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A309A#FFFFFF#000000##FFFFFF
##2A309A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a309a;
/* rgb */ color: rgb(42, 48, 154);
/* oklch */ color: oklch(38.1% 0.169 272.7);
Tailwind
colors: {
  custom: {
    50: '#7569b9',
    500: '#2a309a',
    950: '#000000',
  },
}
SCSS
$custom: #2a309a;
$custom-light: #7569b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a309a",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 236.786,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38096,
    "c": 0.16885,
    "h": 272.7
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#2A309A
secondary
#BCB863
accent
#D847E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A309A

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

Preview Lab → · Contrast checker → · Palette generator →

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