#2A287C#2A287C

#2A287C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.138 H 277.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2A287C
RGBrgb(42, 40, 124)
HSLhsl(241, 51%, 32%)
HSVhsv(241, 68%, 49%)
CMYKcmyk(66.1%, 67.7%, 0%, 51.4%)
CIE-LABlab(21.82, 28.63, -47.44)
CIE-LCHlch(21.82, 55.41, 301.11°)
OKLaboklab(33.79% 0.0171 -0.1368)
OKLCHoklch(33.79% 0.138 277.1)
XYZxyz(5.3505, 3.4646, 19.4517)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A287C #7A7C28
analogous
#28507C #2A287C #54287C
triadic
#2A287C #7C2A28 #287C2A
tetradic
#2A287C #7C2850 #7A7C28 #287C54
square
#2A287C #7C2850 #7A7C28 #287C54
split-complementary
#2A287C #7C5428 #507C28
monochromatic
#0B0A1F #1A194E #2A287C #3A37AA #5956C8

Accessibility & contrast

On white

12.40
#2A287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A287C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A287C#FFFFFF#000000##FFFFFF
##2A287C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a287c;
/* rgb */ color: rgb(42, 40, 124);
/* oklch */ color: oklch(33.8% 0.138 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e62a3',
    500: '#2a287c',
    950: '#000000',
  },
}
SCSS
$custom: #2a287c;
$custom-light: #6e62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a287c",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 241.429,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33788,
    "c": 0.13783,
    "h": 277.1
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#2A287C
secondary
#ABAD52
accent
#DB4DD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A287C

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

Preview Lab → · Contrast checker → · Palette generator →

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