#2A248E#2A248E

#2A248E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.167 H 275.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2A248E
RGBrgb(42, 36, 142)
HSLhsl(243, 60%, 35%)
HSVhsv(243, 75%, 56%)
CMYKcmyk(70.4%, 74.6%, 0%, 44.3%)
CIE-LABlab(22.68, 37.41, -57.33)
CIE-LCHlch(22.68, 68.46, 303.13°)
OKLaboklab(34.95% 0.0172 -0.1657)
OKLCHoklch(34.95% 0.167 275.9)
XYZxyz(6.4666, 3.7064, 25.9606)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A248E #888E24
analogous
#24538E #2A248E #5F248E
triadic
#2A248E #8E2A24 #248E2A
tetradic
#2A248E #8E2453 #888E24 #248E5F
square
#2A248E #8E2453 #888E24 #248E5F
split-complementary
#2A248E #8E5F24 #538E24
monochromatic
#0D0B2C #1C185D #2A248E #3830BF #5F58D5

Accessibility & contrast

On white

12.06
#2A248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A248E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A248E#FFFFFF#000000##FFFFFF
##2A248E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a248e;
/* rgb */ color: rgb(42, 36, 142);
/* oklch */ color: oklch(34.9% 0.167 275.9);
Tailwind
colors: {
  custom: {
    50: '#7360b0',
    500: '#2a248e',
    950: '#000000',
  },
}
SCSS
$custom: #2a248e;
$custom-light: #7360b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a248e",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 243.396,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.16659,
    "h": 275.9
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#2A248E
secondary
#B3B955
accent
#E345DA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A248E

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

Preview Lab → · Contrast checker → · Palette generator →

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