#2A308B#2A308B

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

Color values

HEX#2A308B
RGBrgb(42, 48, 139)
HSLhsl(236, 54%, 35%)
HSVhsv(236, 70%, 55%)
CMYKcmyk(69.8%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.17, 28.80, -51.38)
CIE-LCHlch(25.17, 58.90, 299.27°)
OKLaboklab(36.66% 0.0092 -0.1483)
OKLCHoklch(36.66% 0.149 273.5)
XYZxyz(6.6704, 4.4696, 24.9323)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A308B #8B852A
analogous
#2A608B #2A308B #552A8B
triadic
#2A308B #8B2A30 #308B2A
tetradic
#2A308B #8B2A60 #8B852A #2A8B55
square
#2A308B #8B2A60 #8B852A #2A8B55
split-complementary
#2A308B #8B552A #608B2A
monochromatic
#0E102D #1C205C #2A308B #3840BA #6067CF

Accessibility & contrast

On white

11.09
#2A308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A308B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A308B#FFFFFF#000000##FFFFFF
##2A308B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a308b;
/* rgb */ color: rgb(42, 48, 139);
/* oklch */ color: oklch(36.7% 0.149 273.5);
Tailwind
colors: {
  custom: {
    50: '#7168ae',
    500: '#2a308b',
    950: '#000000',
  },
}
SCSS
$custom: #2a308b;
$custom-light: #7168ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a308b",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 236.289,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36655,
    "c": 0.14856,
    "h": 273.5
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A308B

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

Preview Lab → · Contrast checker → · Palette generator →

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