#2D318B#2D318B

#2D318B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.146 H 274.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2D318B
RGBrgb(45, 49, 139)
HSLhsl(237, 51%, 36%)
HSVhsv(237, 68%, 55%)
CMYKcmyk(67.6%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.62, 28.58, -50.64)
CIE-LCHlch(25.62, 58.14, 299.44°)
OKLaboklab(37.04% 0.012 -0.146)
OKLCHoklch(37.04% 0.147 274.7)
XYZxyz(6.8392, 4.6180, 24.9520)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D318B #8B872D
analogous
#2D608B #2D318B #582D8B
triadic
#2D318B #8B2D31 #318B2D
tetradic
#2D318B #8B2D60 #8B872D #2D8B58
square
#2D318B #8B2D60 #8B872D #2D8B58
split-complementary
#2D318B #8B582D #608B2D
monochromatic
#0F102F #1E215D #2D318B #3C41B9 #656ACD

Accessibility & contrast

On white

10.92
#2D318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D318B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D318B#FFFFFF#000000##FFFFFF
##2D318B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d318b;
/* rgb */ color: rgb(45, 49, 139);
/* oklch */ color: oklch(37.0% 0.146 274.7);
Tailwind
colors: {
  custom: {
    50: '#7269ae',
    500: '#2d318b',
    950: '#000000',
  },
}
SCSS
$custom: #2d318b;
$custom-light: #7269ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d318b",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 237.447,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37037,
    "c": 0.1465,
    "h": 274.7
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#2D318B
secondary
#B4B060
accent
#D54DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D318B

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

Preview Lab → · Contrast checker → · Palette generator →

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