#2D318F#2D318F

#2D318F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.152 H 274.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2D318F
RGBrgb(45, 49, 143)
HSLhsl(238, 52%, 37%)
HSVhsv(238, 69%, 56%)
CMYKcmyk(68.5%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.97, 30.03, -52.54)
CIE-LCHlch(25.97, 60.51, 299.75°)
OKLaboklab(37.41% 0.0117 -0.1516)
OKLCHoklch(37.41% 0.152 274.4)
XYZxyz(7.1368, 4.7370, 26.5195)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D318F #8F8B2D
analogous
#2D628F #2D318F #5A2D8F
triadic
#2D318F #8F2D31 #318F2D
tetradic
#2D318F #8F2D62 #8F8B2D #2D8F5A
square
#2D318F #8F2D62 #8F8B2D #2D8F5A
split-complementary
#2D318F #8F5A2D #628F2D
monochromatic
#101132 #1E2160 #2D318F #3C41BE #676BCF

Accessibility & contrast

On white

10.78
#2D318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D318F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D318F#FFFFFF#000000##FFFFFF
##2D318F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d318f;
/* rgb */ color: rgb(45, 49, 143);
/* oklch */ color: oklch(37.4% 0.152 274.4);
Tailwind
colors: {
  custom: {
    50: '#7369b1',
    500: '#2d318f',
    950: '#000000',
  },
}
SCSS
$custom: #2d318f;
$custom-light: #7369b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d318f",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 237.551,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37407,
    "c": 0.15203,
    "h": 274.4
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#2D318F
secondary
#B6B262
accent
#D64CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D318F

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

Preview Lab → · Contrast checker → · Palette generator →

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