#2A249E#2A249E

#2A249E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.187 H 274.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2A249E
RGBrgb(42, 36, 158)
HSLhsl(243, 63%, 38%)
HSVhsv(243, 77%, 62%)
CMYKcmyk(73.4%, 77.2%, 0%, 38%)
CIE-LABlab(24.39, 42.76, -64.36)
CIE-LCHlch(24.39, 77.27, 303.60°)
OKLaboklab(36.67% 0.0138 -0.1862)
OKLCHoklch(36.67% 0.187 274.2)
XYZxyz(7.7552, 4.2218, 32.7473)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A249E #989E24
analogous
#245B9E #2A249E #67249E
triadic
#2A249E #9E2A24 #249E2A
tetradic
#2A249E #9E245B #989E24 #249E67
square
#2A249E #9E245B #989E24 #249E67
split-complementary
#2A249E #9E6724 #5B9E24
monochromatic
#100D3A #1D196C #2A249E #372FD0 #6761DB

Accessibility & contrast

On white

11.38
#2A249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A249E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A249E#FFFFFF#000000##FFFFFF
##2A249E1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a249e;
/* rgb */ color: rgb(42, 36, 158);
/* oklch */ color: oklch(36.7% 0.187 274.2);
Tailwind
colors: {
  custom: {
    50: '#7761bc',
    500: '#2a249e',
    950: '#000000',
  },
}
SCSS
$custom: #2a249e;
$custom-light: #7761bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a249e",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 242.951,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3667,
    "c": 0.18667,
    "h": 274.2
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#2A249E
secondary
#BBC05E
accent
#E642DE
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A249E

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

Preview Lab → · Contrast checker → · Palette generator →

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