#2A3B87#2A3B87

#2A3B87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.128 H 269.9°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A3B87
RGBrgb(42, 59, 135)
HSLhsl(229, 53%, 35%)
HSVhsv(229, 69%, 53%)
CMYKcmyk(68.9%, 56.3%, 0%, 47.1%)
CIE-LABlab(27.76, 19.86, -44.67)
CIE-LCHlch(27.76, 48.89, 293.97°)
OKLaboklab(38.48% -0.0003 -0.1284)
OKLCHoklch(38.48% 0.128 269.9)
XYZxyz(6.8905, 5.3688, 23.5901)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B87 #87762A
analogous
#2A6A87 #2A3B87 #472A87
triadic
#2A3B87 #872A3B #3B872A
tetradic
#2A3B87 #872A6A #87762A #2A8747
square
#2A3B87 #872A6A #87762A #2A8747
split-complementary
#2A3B87 #87472A #6A872A
monochromatic
#0D122A #1B2758 #2A3B87 #394FB6 #5E73CD

Accessibility & contrast

On white

10.13
#2A3B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B87
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B87#FFFFFF#000000##FFFFFF
##2A3B871.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3b87;
/* rgb */ color: rgb(42, 59, 135);
/* oklch */ color: oklch(38.5% 0.128 269.9);
Tailwind
colors: {
  custom: {
    50: '#6f70ab',
    500: '#2a3b87',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b87;
$custom-light: #6f70ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b87",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 229.032,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38476,
    "c": 0.12845,
    "h": 269.9
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#2A3B87
secondary
#B3A35A
accent
#C24CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3B87

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

Preview Lab → · Contrast checker → · Palette generator →

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