#2A308C#2A308C

#2A308C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.150 H 273.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2A308C
RGBrgb(42, 48, 140)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 55%)
CMYKcmyk(70%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.26, 29.16, -51.85)
CIE-LCHlch(25.26, 59.49, 299.35°)
OKLaboklab(36.75% 0.0091 -0.1497)
OKLCHoklch(36.75% 0.15 273.5)
XYZxyz(6.7438, 4.4990, 25.3188)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A308C #8C862A
analogous
#2A618C #2A308C #552A8C
triadic
#2A308C #8C2A30 #308C2A
tetradic
#2A308C #8C2A61 #8C862A #2A8C55
square
#2A308C #8C2A61 #8C862A #2A8C55
split-complementary
#2A308C #8C552A #618C2A
monochromatic
#0E102E #1C205D #2A308C #3840BB #6168D0

Accessibility & contrast

On white

11.05
#2A308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A308C
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A308C#FFFFFF#000000##FFFFFF
##2A308C1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a308c;
/* rgb */ color: rgb(42, 48, 140);
/* oklch */ color: oklch(36.7% 0.150 273.5);
Tailwind
colors: {
  custom: {
    50: '#7168ae',
    500: '#2a308c',
    950: '#000000',
  },
}
SCSS
$custom: #2a308c;
$custom-light: #7168ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a308c",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 236.327,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36748,
    "c": 0.14995,
    "h": 273.5
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#2A308C
secondary
#B5B05C
accent
#D44BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A308C

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

Preview Lab → · Contrast checker → · Palette generator →

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