#2A289E#2A289E

#2A289E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.183 H 273.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2A289E
RGBrgb(42, 40, 158)
HSLhsl(241, 60%, 39%)
HSVhsv(241, 75%, 62%)
CMYKcmyk(73.4%, 74.7%, 0%, 38%)
CIE-LABlab(25.19, 40.50, -63.04)
CIE-LCHlch(25.19, 74.93, 302.72°)
OKLaboklab(37.24% 0.0119 -0.1824)
OKLCHoklch(37.24% 0.183 273.7)
XYZxyz(7.8831, 4.4777, 32.7899)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A289E #9C9E28
analogous
#28619E #2A289E #65289E
triadic
#2A289E #9E2A28 #289E2A
tetradic
#2A289E #9E2861 #9C9E28 #289E65
square
#2A289E #9E2861 #9C9E28 #289E65
split-complementary
#2A289E #9E6528 #619E28
monochromatic
#100F3C #1D1C6D #2A289E #3937CC #6A68D9

Accessibility & contrast

On white

11.08
#2A289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A289E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A289E#FFFFFF#000000##FFFFFF
##2A289E1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a289e;
/* rgb */ color: rgb(42, 40, 158);
/* oklch */ color: oklch(37.2% 0.183 273.7);
Tailwind
colors: {
  custom: {
    50: '#7663bc',
    500: '#2a289e',
    950: '#000000',
  },
}
SCSS
$custom: #2a289e;
$custom-light: #7663bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a289e",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 241.017,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37236,
    "c": 0.18274,
    "h": 273.7
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#2A289E
secondary
#BDBF63
accent
#E345E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A289E

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

Preview Lab → · Contrast checker → · Palette generator →

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