#2D387C#2D387C

#2D387C is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.115 H 272.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2D387C
RGBrgb(45, 56, 124)
HSLhsl(232, 47%, 33%)
HSVhsv(232, 64%, 49%)
CMYKcmyk(63.7%, 54.8%, 0%, 51.4%)
CIE-LABlab(26.28, 18.32, -40.18)
CIE-LCHlch(26.28, 44.16, 294.51°)
OKLaboklab(37.15% 0.0053 -0.1152)
OKLCHoklch(37.15% 0.115 272.6)
XYZxyz(6.1332, 4.8410, 19.6761)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D387C #7C712D
analogous
#2D5F7C #2D387C #492D7C
triadic
#2D387C #7C2D38 #387C2D
tetradic
#2D387C #7C2D5F #7C712D #2D7C49
square
#2D387C #7C2D5F #7C712D #2D7C49
split-complementary
#2D387C #7C492D #5F7C2D
monochromatic
#0C0F22 #1D244F #2D387C #3D4CA9 #5F6DC5

Accessibility & contrast

On white

10.67
#2D387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D387C
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D387C#FFFFFF#000000##FFFFFF
##2D387C1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E427E
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d387c;
/* rgb */ color: rgb(45, 56, 124);
/* oklch */ color: oklch(37.1% 0.115 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f6ea2',
    500: '#2d387c',
    950: '#000000',
  },
}
SCSS
$custom: #2d387c;
$custom-light: #6f6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d387c",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 231.646,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37147,
    "c": 0.11533,
    "h": 272.6
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#2D387C
secondary
#ABA05A
accent
#C451D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D387C

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

Preview Lab → · Contrast checker → · Palette generator →

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