#2A245E#2A245E

#2A245E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.100 H 283.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2A245E
RGBrgb(42, 36, 94)
HSLhsl(246, 45%, 25%)
HSVhsv(246, 62%, 37%)
CMYKcmyk(55.3%, 61.7%, 0%, 63.1%)
CIE-LABlab(18.20, 20.60, -33.88)
CIE-LCHlch(18.20, 39.66, 301.30°)
OKLaboklab(30.33% 0.0231 -0.097)
OKLCHoklch(30.33% 0.1 283.4)
XYZxyz(3.6055, 2.5619, 10.8920)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A245E #585E24
analogous
#243B5E #2A245E #47245E
triadic
#2A245E #5E2A24 #245E2A
tetradic
#2A245E #5E243B #585E24 #245E47
square
#2A245E #5E243B #585E24 #245E47
split-complementary
#2A245E #5E4724 #3B5E24
monochromatic
#0A0816 #161332 #2A245E #3E358A #5246B7

Accessibility & contrast

On white

13.89
#2A245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A245E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A245E
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A245E#FFFFFF#000000##FFFFFF
##2A245E1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#15313D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a245e;
/* rgb */ color: rgb(42, 36, 94);
/* oklch */ color: oklch(30.3% 0.100 283.4);
Tailwind
colors: {
  custom: {
    50: '#695f8c',
    500: '#2a245e',
    950: '#000000',
  },
}
SCSS
$custom: #2a245e;
$custom-light: #695f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a245e",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 246.207,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30325,
    "c": 0.09967,
    "h": 283.4
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#2A245E
secondary
#8A924C
accent
#D453C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A245E

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

Preview Lab → · Contrast checker → · Palette generator →

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