#2A246F#2A246F

#2A246F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.125 H 280.2°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2A246F
RGBrgb(42, 36, 111)
HSLhsl(245, 51%, 29%)
HSVhsv(245, 68%, 44%)
CMYKcmyk(62.2%, 67.6%, 0%, 56.5%)
CIE-LABlab(19.64, 26.62, -42.66)
CIE-LCHlch(19.64, 50.29, 301.97°)
OKLaboklab(31.84% 0.0221 -0.1228)
OKLCHoklch(31.84% 0.125 280.2)
XYZxyz(4.4541, 2.9014, 15.3612)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A246F #696F24
analogous
#24446F #2A246F #50246F
triadic
#2A246F #6F2A24 #246F2A
tetradic
#2A246F #6F2444 #696F24 #246F50
square
#2A246F #6F2444 #696F24 #246F50
split-complementary
#2A246F #6F5024 #446F24
monochromatic
#090717 #191541 #2A246F #3B339D #5349C4

Accessibility & contrast

On white

13.29
#2A246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A246F
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A246F#FFFFFF#000000##FFFFFF
##2A246F1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a246f;
/* rgb */ color: rgb(42, 36, 111);
/* oklch */ color: oklch(31.8% 0.125 280.2);
Tailwind
colors: {
  custom: {
    50: '#6c5f99',
    500: '#2a246f',
    950: '#000000',
  },
}
SCSS
$custom: #2a246f;
$custom-light: #6c5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a246f",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 244.8,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.12473,
    "h": 280.2
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#2A246F
secondary
#9BA24D
accent
#DA4DCF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A246F

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

Preview Lab → · Contrast checker → · Palette generator →

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