#2D488B#2D488B

#2D488B is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.116 H 265.2°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2D488B
RGBrgb(45, 72, 139)
HSLhsl(223, 51%, 36%)
HSVhsv(223, 68%, 55%)
CMYKcmyk(67.6%, 48.2%, 0%, 45.5%)
CIE-LABlab(31.93, 13.04, -40.41)
CIE-LCHlch(31.93, 42.46, 287.89°)
OKLaboklab(41.78% -0.0097 -0.1156)
OKLCHoklch(41.78% 0.116 265.2)
XYZxyz(8.0581, 7.0559, 25.3584)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D488B #8B702D
analogous
#2D778B #2D488B #412D8B
triadic
#2D488B #8B2D48 #488B2D
tetradic
#2D488B #8B2D77 #8B702D #2D8B41
square
#2D488B #8B2D77 #8B702D #2D8B41
split-complementary
#2D488B #8B412D #778B2D
monochromatic
#0F182F #1E305D #2D488B #3C60B9 #6583CD

Accessibility & contrast

On white

8.71
#2D488B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2D488B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D488B
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D488B#FFFFFF#000000##FFFFFF
##2D488B1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508D
Deuteranopia (green-blind)
#13478A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d488b;
/* rgb */ color: rgb(45, 72, 139);
/* oklch */ color: oklch(41.8% 0.116 265.2);
Tailwind
colors: {
  custom: {
    50: '#717aad',
    500: '#2d488b',
    950: '#000000',
  },
}
SCSS
$custom: #2d488b;
$custom-light: #717aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d488b",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 139
  },
  "hsl": {
    "h": 222.766,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.11604,
    "h": 265.2
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#2D488B
secondary
#B49C60
accent
#B24DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D488B

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

Preview Lab → · Contrast checker → · Palette generator →

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