#2A308E#2A308E

#2A308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.153 H 273.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2A308E
RGBrgb(42, 48, 142)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 56%)
CMYKcmyk(70.4%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.44, 29.89, -52.80)
CIE-LCHlch(25.44, 60.67, 299.52°)
OKLaboklab(36.94% 0.009 -0.1524)
OKLCHoklch(36.94% 0.153 273.4)
XYZxyz(6.8927, 4.5585, 26.1026)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A308E #8E882A
analogous
#2A628E #2A308E #562A8E
triadic
#2A308E #8E2A30 #308E2A
tetradic
#2A308E #8E2A62 #8E882A #2A8E56
square
#2A308E #8E2A62 #8E882A #2A8E56
split-complementary
#2A308E #8E562A #628E2A
monochromatic
#0E1030 #1C205F #2A308E #3840BD #6269D1

Accessibility & contrast

On white

10.98
#2A308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A308E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A308E#FFFFFF#000000##FFFFFF
##2A308E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a308e;
/* rgb */ color: rgb(42, 48, 142);
/* oklch */ color: oklch(36.9% 0.153 273.4);
Tailwind
colors: {
  custom: {
    50: '#7268b0',
    500: '#2a308e',
    950: '#000000',
  },
}
SCSS
$custom: #2a308e;
$custom-light: #7268b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a308e",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 236.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36937,
    "c": 0.1527,
    "h": 273.4
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#2A308E
secondary
#B6B15D
accent
#D54ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A308E

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

Preview Lab → · Contrast checker → · Palette generator →

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