#2A3287#2A3287

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

Color values

HEX#2A3287
RGBrgb(42, 50, 135)
HSLhsl(235, 53%, 35%)
HSVhsv(235, 69%, 53%)
CMYKcmyk(68.9%, 63%, 0%, 47.1%)
CIE-LABlab(25.33, 25.99, -48.63)
CIE-LCHlch(25.33, 55.14, 298.12°)
OKLaboklab(36.66% 0.0078 -0.1402)
OKLCHoklch(36.66% 0.14 273.2)
XYZxyz(6.4672, 4.5221, 23.4490)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3287 #877F2A
analogous
#2A6087 #2A3287 #512A87
triadic
#2A3287 #872A32 #32872A
tetradic
#2A3287 #872A60 #877F2A #2A8751
square
#2A3287 #872A60 #877F2A #2A8751
split-complementary
#2A3287 #87512A #60872A
monochromatic
#0D0F2A #1B2158 #2A3287 #3943B6 #5E68CD

Accessibility & contrast

On white

11.03
#2A3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3287
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3287#FFFFFF#000000##FFFFFF
##2A32871.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3287;
/* rgb */ color: rgb(42, 50, 135);
/* oklch */ color: oklch(36.7% 0.140 273.2);
Tailwind
colors: {
  custom: {
    50: '#706aab',
    500: '#2a3287',
    950: '#000000',
  },
}
SCSS
$custom: #2a3287;
$custom-light: #706aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3287",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 234.839,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.1404,
    "h": 273.2
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

primary
#2A3287
secondary
#B3AB5A
accent
#D04CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3287

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

Preview Lab → · Contrast checker → · Palette generator →

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