#2A248D#2A248D

#2A248D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.165 H 276.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A248D
RGBrgb(42, 36, 141)
HSLhsl(243, 59%, 35%)
HSVhsv(243, 74%, 55%)
CMYKcmyk(70.2%, 74.5%, 0%, 44.7%)
CIE-LABlab(22.57, 37.07, -56.88)
CIE-LCHlch(22.57, 67.90, 303.09°)
OKLaboklab(34.84% 0.0174 -0.1644)
OKLCHoklch(34.84% 0.165 276)
XYZxyz(6.3919, 3.6765, 25.5669)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A248D #878D24
analogous
#24528D #2A248D #5F248D
triadic
#2A248D #8D2A24 #248D2A
tetradic
#2A248D #8D2452 #878D24 #248D5F
square
#2A248D #8D2452 #878D24 #248D5F
split-complementary
#2A248D #8D5F24 #528D24
monochromatic
#0D0B2B #1B185C #2A248D #3930BE #5E57D4

Accessibility & contrast

On white

12.10
#2A248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A248D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A248D#FFFFFF#000000##FFFFFF
##2A248D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a248d;
/* rgb */ color: rgb(42, 36, 141);
/* oklch */ color: oklch(34.8% 0.165 276.0);
Tailwind
colors: {
  custom: {
    50: '#7360af',
    500: '#2a248d',
    950: '#000000',
  },
}
SCSS
$custom: #2a248d;
$custom-light: #7360af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a248d",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 243.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34839,
    "c": 0.16531,
    "h": 276
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#2A248D
secondary
#B3B854
accent
#E345DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A248D

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

Preview Lab → · Contrast checker → · Palette generator →

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