#2A246E#2A246E

#2A246E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.123 H 280.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2A246E
RGBrgb(42, 36, 110)
HSLhsl(245, 51%, 29%)
HSVhsv(245, 67%, 43%)
CMYKcmyk(61.8%, 67.3%, 0%, 56.9%)
CIE-LABlab(19.55, 26.27, -42.16)
CIE-LCHlch(19.55, 49.67, 301.93°)
OKLaboklab(31.75% 0.0222 -0.1213)
OKLCHoklch(31.75% 0.123 280.4)
XYZxyz(4.3993, 2.8795, 15.0728)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A246E #686E24
analogous
#24436E #2A246E #4F246E
triadic
#2A246E #6E2A24 #246E2A
tetradic
#2A246E #6E2443 #686E24 #246E4F
square
#2A246E #6E2443 #686E24 #246E4F
split-complementary
#2A246E #6E4F24 #436E24
monochromatic
#090817 #181540 #2A246E #3C339C #5349C3

Accessibility & contrast

On white

13.32
#2A246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A246E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A246E#FFFFFF#000000##FFFFFF
##2A246E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a246e;
/* rgb */ color: rgb(42, 36, 110);
/* oklch */ color: oklch(31.7% 0.123 280.4);
Tailwind
colors: {
  custom: {
    50: '#6c5f98',
    500: '#2a246e',
    950: '#000000',
  },
}
SCSS
$custom: #2a246e;
$custom-light: #6c5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a246e",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 244.865,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31748,
    "c": 0.1233,
    "h": 280.4
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#2A246E
secondary
#9AA14D
accent
#DA4ECF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A246E

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

Preview Lab → · Contrast checker → · Palette generator →

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