#2A248B#2A248B

#2A248B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.163 H 276.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2A248B
RGBrgb(42, 36, 139)
HSLhsl(243, 59%, 34%)
HSVhsv(243, 74%, 55%)
CMYKcmyk(69.8%, 74.1%, 0%, 45.5%)
CIE-LABlab(22.36, 36.39, -55.98)
CIE-LCHlch(22.36, 66.77, 303.03°)
OKLaboklab(34.63% 0.0178 -0.1617)
OKLCHoklch(34.63% 0.163 276.3)
XYZxyz(6.2444, 3.6175, 24.7903)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A248B #858B24
analogous
#24528B #2A248B #5E248B
triadic
#2A248B #8B2A24 #248B2A
tetradic
#2A248B #8B2452 #858B24 #248B5E
square
#2A248B #8B2452 #858B24 #248B5E
split-complementary
#2A248B #8B5E24 #528B24
monochromatic
#0D0B2A #1B175A #2A248B #3931BC #5D56D3

Accessibility & contrast

On white

12.18
#2A248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A248B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A248B#FFFFFF#000000##FFFFFF
##2A248B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a248b;
/* rgb */ color: rgb(42, 36, 139);
/* oklch */ color: oklch(34.6% 0.163 276.3);
Tailwind
colors: {
  custom: {
    50: '#7260ae',
    500: '#2a248b',
    950: '#000000',
  },
}
SCSS
$custom: #2a248b;
$custom-light: #7260ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a248b",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 243.495,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34629,
    "c": 0.16272,
    "h": 276.3
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#2A248B
secondary
#B2B753
accent
#E246D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A248B

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

Preview Lab → · Contrast checker → · Palette generator →

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