#2A308F#2A308F

#2A308F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.154 H 273.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2A308F
RGBrgb(42, 48, 143)
HSLhsl(236, 55%, 36%)
HSVhsv(236, 71%, 56%)
CMYKcmyk(70.6%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.53, 30.26, -53.27)
CIE-LCHlch(25.53, 61.26, 299.60°)
OKLaboklab(37.03% 0.0089 -0.1538)
OKLCHoklch(37.03% 0.154 273.3)
XYZxyz(6.9681, 4.5887, 26.4998)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A308F #8F892A
analogous
#2A638F #2A308F #572A8F
triadic
#2A308F #8F2A30 #308F2A
tetradic
#2A308F #8F2A63 #8F892A #2A8F57
square
#2A308F #8F2A63 #8F892A #2A8F57
split-complementary
#2A308F #8F572A #638F2A
monochromatic
#0E1030 #1C2060 #2A308F #3840BE #6269D1

Accessibility & contrast

On white

10.95
#2A308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A308F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A308F#FFFFFF#000000##FFFFFF
##2A308F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a308f;
/* rgb */ color: rgb(42, 48, 143);
/* oklch */ color: oklch(37.0% 0.154 273.3);
Tailwind
colors: {
  custom: {
    50: '#7268b1',
    500: '#2a308f',
    950: '#000000',
  },
}
SCSS
$custom: #2a308f;
$custom-light: #7268b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a308f",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 236.436,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.15407,
    "h": 273.3
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#2A308F
secondary
#B7B25E
accent
#D54ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A308F

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

Preview Lab → · Contrast checker → · Palette generator →

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