#2D4088#2D4088

#2D4088 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.122 H 269.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2D4088
RGBrgb(45, 64, 136)
HSLhsl(227, 50%, 35%)
HSVhsv(227, 67%, 53%)
CMYKcmyk(66.9%, 52.9%, 0%, 46.7%)
CIE-LABlab(29.42, 17.34, -42.61)
CIE-LCHlch(29.42, 46.00, 292.14°)
OKLaboklab(39.79% -0.0019 -0.1222)
OKLCHoklch(39.79% 0.122 269.1)
XYZxyz(7.3580, 6.0016, 24.0584)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4088 #88752D
analogous
#2D6D88 #2D4088 #482D88
triadic
#2D4088 #882D40 #40882D
tetradic
#2D4088 #882D6D #88752D #2D8848
square
#2D4088 #882D6D #88752D #2D8848
split-complementary
#2D4088 #88482D #6D882D
monochromatic
#0F152C #1E2A5A #2D4088 #3C56B6 #6479CC

Accessibility & contrast

On white

9.54
#2D4088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2D4088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4088
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4088#FFFFFF#000000##FFFFFF
##2D40881.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154A8B
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4088;
/* rgb */ color: rgb(45, 64, 136);
/* oklch */ color: oklch(39.8% 0.122 269.1);
Tailwind
colors: {
  custom: {
    50: '#7174ab',
    500: '#2d4088',
    950: '#000000',
  },
}
SCSS
$custom: #2d4088;
$custom-light: #7174ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4088",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 136
  },
  "hsl": {
    "h": 227.473,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39794,
    "c": 0.12225,
    "h": 269.1
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#2D4088
secondary
#B2A15F
accent
#BD4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4088

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

Preview Lab → · Contrast checker → · Palette generator →

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