#2D3898#2D3898

#2D3898 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.156 H 272.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2D3898
RGBrgb(45, 56, 152)
HSLhsl(234, 54%, 39%)
HSVhsv(234, 70%, 60%)
CMYKcmyk(70.4%, 63.2%, 0%, 40.4%)
CIE-LABlab(28.52, 28.70, -53.91)
CIE-LCHlch(28.52, 61.07, 298.03°)
OKLaboklab(39.52% 0.0057 -0.1555)
OKLCHoklch(39.52% 0.156 272.1)
XYZxyz(8.1619, 5.6525, 30.3606)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3898 #988D2D
analogous
#2D6D98 #2D3898 #572D98
triadic
#2D3898 #982D38 #38982D
tetradic
#2D3898 #982D6D #988D2D #2D9857
square
#2D3898 #982D6D #988D2D #2D9857
split-complementary
#2D3898 #98572D #6D982D
monochromatic
#11153A #1F2769 #2D3898 #3D4BC5 #6C77D3

Accessibility & contrast

On white

9.86
#2D3898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D3898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3898
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3898#FFFFFF#000000##FFFFFF
##2D38981.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3898;
/* rgb */ color: rgb(45, 56, 152);
/* oklch */ color: oklch(39.5% 0.156 272.1);
Tailwind
colors: {
  custom: {
    50: '#756eb7',
    500: '#2d3898',
    950: '#000000',
  },
}
SCSS
$custom: #2d3898;
$custom-light: #756eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3898",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 233.832,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.15565,
    "h": 272.1
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#2D3898
secondary
#BAB266
accent
#CF4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3898

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

Preview Lab → · Contrast checker → · Palette generator →

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