#2A247F#2A247F

#2A247F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.147 H 277.8°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2A247F
RGBrgb(42, 36, 127)
HSLhsl(244, 56%, 32%)
HSVhsv(244, 72%, 50%)
CMYKcmyk(66.9%, 71.7%, 0%, 50.2%)
CIE-LABlab(21.15, 32.25, -50.43)
CIE-LCHlch(21.15, 59.86, 302.60°)
OKLaboklab(33.4% 0.0199 -0.1455)
OKLCHoklch(33.4% 0.147 277.8)
XYZxyz(5.4152, 3.2859, 20.4234)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A247F #797F24
analogous
#244C7F #2A247F #58247F
triadic
#2A247F #7F2A24 #247F2A
tetradic
#2A247F #7F244C #797F24 #247F58
square
#2A247F #7F244C #797F24 #247F58
split-complementary
#2A247F #7F5824 #4C7F24
monochromatic
#0A0920 #1A164F #2A247F #3A32AF #5850CD

Accessibility & contrast

On white

12.67
#2A247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A247F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A247F#FFFFFF#000000##FFFFFF
##2A247F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a247f;
/* rgb */ color: rgb(42, 36, 127);
/* oklch */ color: oklch(33.4% 0.147 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f60a5',
    500: '#2a247f',
    950: '#000000',
  },
}
SCSS
$custom: #2a247f;
$custom-light: #6f60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a247f",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 243.956,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33397,
    "c": 0.14688,
    "h": 277.8
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#2A247F
secondary
#ABB14E
accent
#DF49D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A247F

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

Preview Lab → · Contrast checker → · Palette generator →

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