#2A3985#2A3985

#2A3985 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.128 H 270.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2A3985
RGBrgb(42, 57, 133)
HSLhsl(230, 52%, 34%)
HSVhsv(230, 68%, 52%)
CMYKcmyk(68.4%, 57.1%, 0%, 47.8%)
CIE-LABlab(27.05, 20.47, -44.58)
CIE-LCHlch(27.05, 49.06, 294.67°)
OKLaboklab(37.89% 0.0014 -0.1282)
OKLCHoklch(37.89% 0.128 270.6)
XYZxyz(6.6502, 5.1113, 22.8219)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3985 #85762A
analogous
#2A6785 #2A3985 #492A85
triadic
#2A3985 #852A39 #39852A
tetradic
#2A3985 #852A67 #85762A #2A8549
square
#2A3985 #852A67 #85762A #2A8549
split-complementary
#2A3985 #85492A #67852A
monochromatic
#0D1128 #1B2556 #2A3985 #394DB4 #5D70CC

Accessibility & contrast

On white

10.38
#2A3985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A3985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3985
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3985#FFFFFF#000000##FFFFFF
##2A39851.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3985;
/* rgb */ color: rgb(42, 57, 133);
/* oklch */ color: oklch(37.9% 0.128 270.6);
Tailwind
colors: {
  custom: {
    50: '#6f6fa9',
    500: '#2a3985',
    950: '#000000',
  },
}
SCSS
$custom: #2a3985;
$custom-light: #6f6fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3985",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 230.11,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.12822,
    "h": 270.6
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#2A3985
secondary
#B2A359
accent
#C44CDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3985

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

Preview Lab → · Contrast checker → · Palette generator →

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