#2A309C#2A309C

#2A309C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.171 H 272.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2A309C
RGBrgb(42, 48, 156)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 73%, 61%)
CMYKcmyk(73.1%, 69.2%, 0%, 38.8%)
CIE-LABlab(26.75, 34.95, -59.25)
CIE-LCHlch(26.75, 68.79, 300.53°)
OKLaboklab(38.29% 0.0076 -0.1713)
OKLCHoklch(38.29% 0.171 272.5)
XYZxyz(8.0105, 5.0056, 31.9901)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A309C #9C962A
analogous
#2A699C #2A309C #5D2A9C
triadic
#2A309C #9C2A30 #309C2A
tetradic
#2A309C #9C2A69 #9C962A #2A9C5D
square
#2A309C #9C2A69 #9C962A #2A9C5D
split-complementary
#2A309C #9C5D2A #699C2A
monochromatic
#10123C #1D216C #2A309C #3941CA #6A6FD7

Accessibility & contrast

On white

10.49
#2A309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A309C
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A309C#FFFFFF#000000##FFFFFF
##2A309C1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a309c;
/* rgb */ color: rgb(42, 48, 156);
/* oklch */ color: oklch(38.3% 0.171 272.5);
Tailwind
colors: {
  custom: {
    50: '#7569ba',
    500: '#2a309c',
    950: '#000000',
  },
}
SCSS
$custom: #2a309c;
$custom-light: #7569ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a309c",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 236.842,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38293,
    "c": 0.17149,
    "h": 272.5
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A309C

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

Preview Lab → · Contrast checker → · Palette generator →

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