#2D318E#2D318E

#2D318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.151 H 274.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2D318E
RGBrgb(45, 49, 142)
HSLhsl(238, 52%, 37%)
HSVhsv(238, 68%, 56%)
CMYKcmyk(68.3%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.88, 29.66, -52.06)
CIE-LCHlch(25.88, 59.92, 299.67°)
OKLaboklab(37.31% 0.0118 -0.1502)
OKLCHoklch(37.31% 0.151 274.5)
XYZxyz(7.0614, 4.7069, 26.1223)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D318E #8E8A2D
analogous
#2D628E #2D318E #5A2D8E
triadic
#2D318E #8E2D31 #318E2D
tetradic
#2D318E #8E2D62 #8E8A2D #2D8E5A
square
#2D318E #8E2D62 #8E8A2D #2D8E5A
split-complementary
#2D318E #8E5A2D #628E2D
monochromatic
#101131 #1E2160 #2D318E #3C41BC #676BCF

Accessibility & contrast

On white

10.82
#2D318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D318E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D318E#FFFFFF#000000##FFFFFF
##2D318E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d318e;
/* rgb */ color: rgb(45, 49, 142);
/* oklch */ color: oklch(37.3% 0.151 274.5);
Tailwind
colors: {
  custom: {
    50: '#7369b0',
    500: '#2d318e',
    950: '#000000',
  },
}
SCSS
$custom: #2d318e;
$custom-light: #7369b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d318e",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 237.526,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37314,
    "c": 0.15065,
    "h": 274.5
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#2D318E
secondary
#B5B261
accent
#D54CDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D318E

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

Preview Lab → · Contrast checker → · Palette generator →

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