#2A248F#2A248F

#2A248F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.168 H 275.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2A248F
RGBrgb(42, 36, 143)
HSLhsl(243, 60%, 35%)
HSVhsv(243, 75%, 56%)
CMYKcmyk(70.6%, 74.8%, 0%, 43.9%)
CIE-LABlab(22.78, 37.75, -57.78)
CIE-LCHlch(22.78, 69.02, 303.16°)
OKLaboklab(35.05% 0.017 -0.167)
OKLCHoklch(35.05% 0.168 275.8)
XYZxyz(6.5420, 3.7366, 26.3577)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A248F #898F24
analogous
#24548F #2A248F #5F248F
triadic
#2A248F #8F2A24 #248F2A
tetradic
#2A248F #8F2454 #898F24 #248F5F
square
#2A248F #8F2454 #898F24 #248F5F
split-complementary
#2A248F #8F5F24 #548F24
monochromatic
#0D0B2D #1C185E #2A248F #3830C0 #5F58D5

Accessibility & contrast

On white

12.02
#2A248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A248F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A248F#FFFFFF#000000##FFFFFF
##2A248F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a248f;
/* rgb */ color: rgb(42, 36, 143);
/* oklch */ color: oklch(35.1% 0.168 275.8);
Tailwind
colors: {
  custom: {
    50: '#7360b1',
    500: '#2a248f',
    950: '#000000',
  },
}
SCSS
$custom: #2a248f;
$custom-light: #7360b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a248f",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 243.364,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35051,
    "c": 0.16787,
    "h": 275.8
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A248F

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

Preview Lab → · Contrast checker → · Palette generator →

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