#2D387E#2D387E

#2D387E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.118 H 272.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2D387E
RGBrgb(45, 56, 126)
HSLhsl(232, 47%, 34%)
HSVhsv(232, 64%, 49%)
CMYKcmyk(64.3%, 55.6%, 0%, 50.6%)
CIE-LABlab(26.43, 19.07, -41.20)
CIE-LCHlch(26.43, 45.40, 294.83°)
OKLaboklab(37.31% 0.0054 -0.1182)
OKLCHoklch(37.31% 0.118 272.6)
XYZxyz(6.2610, 4.8921, 20.3489)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D387E #7E732D
analogous
#2D607E #2D387E #4A2D7E
triadic
#2D387E #7E2D38 #387E2D
tetradic
#2D387E #7E2D60 #7E732D #2D7E4A
square
#2D387E #7E2D60 #7E732D #2D7E4A
split-complementary
#2D387E #7E4A2D #607E2D
monochromatic
#0D1024 #1D2451 #2D387E #3D4CAB #5F6DC6

Accessibility & contrast

On white

10.61
#2D387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D387E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D387E#FFFFFF#000000##FFFFFF
##2D387E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094280
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d387e;
/* rgb */ color: rgb(45, 56, 126);
/* oklch */ color: oklch(37.3% 0.118 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f6ea4',
    500: '#2d387e',
    950: '#000000',
  },
}
SCSS
$custom: #2d387e;
$custom-light: #6f6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d387e",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 231.852,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37306,
    "c": 0.11832,
    "h": 272.6
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#2D387E
secondary
#ACA15A
accent
#C551D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D387E

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

Preview Lab → · Contrast checker → · Palette generator →

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