#2A248C#2A248C

#2A248C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.164 H 276.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A248C
RGBrgb(42, 36, 140)
HSLhsl(243, 59%, 35%)
HSVhsv(243, 74%, 55%)
CMYKcmyk(70%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.47, 36.73, -56.43)
CIE-LCHlch(22.47, 67.33, 303.06°)
OKLaboklab(34.73% 0.0176 -0.1631)
OKLCHoklch(34.73% 0.164 276.2)
XYZxyz(6.3178, 3.6469, 25.1768)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A248C #868C24
analogous
#24528C #2A248C #5E248C
triadic
#2A248C #8C2A24 #248C2A
tetradic
#2A248C #8C2452 #868C24 #248C5E
square
#2A248C #8C2452 #868C24 #248C5E
split-complementary
#2A248C #8C5E24 #528C24
monochromatic
#0D0B2B #1B175B #2A248C #3931BD #5E57D4

Accessibility & contrast

On white

12.14
#2A248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A248C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A248C#FFFFFF#000000##FFFFFF
##2A248C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a248c;
/* rgb */ color: rgb(42, 36, 140);
/* oklch */ color: oklch(34.7% 0.164 276.2);
Tailwind
colors: {
  custom: {
    50: '#7260af',
    500: '#2a248c',
    950: '#000000',
  },
}
SCSS
$custom: #2a248c;
$custom-light: #7260af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a248c",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 243.462,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34734,
    "c": 0.16401,
    "h": 276.2
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#2A248C
secondary
#B2B854
accent
#E246D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A248C

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

Preview Lab → · Contrast checker → · Palette generator →

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