#2D48A1#2D48A1

#2D48A1 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.148 H 267.2°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2D48A1
RGBrgb(45, 72, 161)
HSLhsl(226, 56%, 40%)
HSVhsv(226, 72%, 63%)
CMYKcmyk(72%, 55.3%, 0%, 36.9%)
CIE-LABlab(33.49, 21.39, -51.28)
CIE-LCHlch(33.49, 55.56, 292.64°)
OKLaboklab(43.45% -0.0072 -0.1476)
OKLCHoklch(43.45% 0.148 267.2)
XYZxyz(9.8303, 7.7648, 34.6920)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D48A1 #A1862D
analogous
#2D82A1 #2D48A1 #4C2DA1
triadic
#2D48A1 #A12D48 #48A12D
tetradic
#2D48A1 #A12D82 #A1862D #2DA14C
square
#2D48A1 #A12D82 #A1862D #2DA14C
split-complementary
#2D48A1 #A14C2D #82A12D
monochromatic
#121D41 #203371 #2D48A1 #4161CA #7189D7

Accessibility & contrast

On white

8.22
#2D48A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D48A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D48A1
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D48A1#FFFFFF#000000##FFFFFF
##2D48A11.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#005E6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d48a1;
/* rgb */ color: rgb(45, 72, 161);
/* oklch */ color: oklch(43.5% 0.148 267.2);
Tailwind
colors: {
  custom: {
    50: '#757abd',
    500: '#2d48a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d48a1;
$custom-light: #757abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d48a1",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 161
  },
  "hsl": {
    "h": 226.034,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43452,
    "c": 0.1478,
    "h": 267.2
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#2D48A1
secondary
#BFAB6B
accent
#BC48E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2D48A1

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

Preview Lab → · Contrast checker → · Palette generator →

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