#2A308D#2A308D

#2A308D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.151 H 273.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2A308D
RGBrgb(42, 48, 141)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 55%)
CMYKcmyk(70.2%, 66%, 0%, 44.7%)
CIE-LABlab(25.35, 29.53, -52.33)
CIE-LCHlch(25.35, 60.08, 299.44°)
OKLaboklab(36.84% 0.009 -0.1511)
OKLCHoklch(36.84% 0.151 273.4)
XYZxyz(6.8179, 4.5286, 25.7089)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A308D #8D872A
analogous
#2A618D #2A308D #552A8D
triadic
#2A308D #8D2A30 #308D2A
tetradic
#2A308D #8D2A61 #8D872A #2A8D55
square
#2A308D #8D2A61 #8D872A #2A8D55
split-complementary
#2A308D #8D552A #618D2A
monochromatic
#0E102F #1C205E #2A308D #3840BC #6168D0

Accessibility & contrast

On white

11.02
#2A308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A308D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A308D#FFFFFF#000000##FFFFFF
##2A308D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a308d;
/* rgb */ color: rgb(42, 48, 141);
/* oklch */ color: oklch(36.8% 0.151 273.4);
Tailwind
colors: {
  custom: {
    50: '#7268af',
    500: '#2a308d',
    950: '#000000',
  },
}
SCSS
$custom: #2a308d;
$custom-light: #7268af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a308d",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 236.364,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.15133,
    "h": 273.4
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#2A308D
secondary
#B6B15D
accent
#D54ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A308D

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

Preview Lab → · Contrast checker → · Palette generator →

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