#2D387F#2D387F

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

Color values

HEX#2D387F
RGBrgb(45, 56, 127)
HSLhsl(232, 48%, 34%)
HSVhsv(232, 65%, 50%)
CMYKcmyk(64.6%, 55.9%, 0%, 50.2%)
CIE-LABlab(26.50, 19.44, -41.71)
CIE-LCHlch(26.50, 46.01, 294.99°)
OKLaboklab(37.39% 0.0055 -0.1197)
OKLCHoklch(37.39% 0.12 272.6)
XYZxyz(6.3259, 4.9180, 20.6905)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D387F #7F742D
analogous
#2D617F #2D387F #4B2D7F
triadic
#2D387F #7F2D38 #387F2D
tetradic
#2D387F #7F2D61 #7F742D #2D7F4B
square
#2D387F #7F2D61 #7F742D #2D7F4B
split-complementary
#2D387F #7F4B2D #617F2D
monochromatic
#0D1025 #1D2452 #2D387F #3D4CAC #606EC7

Accessibility & contrast

On white

10.59
#2D387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D387F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D387F#FFFFFF#000000##FFFFFF
##2D387F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074281
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d387f;
/* rgb */ color: rgb(45, 56, 127);
/* oklch */ color: oklch(37.4% 0.120 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f6ea5',
    500: '#2d387f',
    950: '#000000',
  },
}
SCSS
$custom: #2d387f;
$custom-light: #6f6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d387f",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 231.951,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37386,
    "c": 0.11982,
    "h": 272.6
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D387F

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

Preview Lab → · Contrast checker → · Palette generator →

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