#2D388A#2D388A

#2D388A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.136 H 272.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2D388A
RGBrgb(45, 56, 138)
HSLhsl(233, 51%, 36%)
HSVhsv(233, 67%, 54%)
CMYKcmyk(67.4%, 59.4%, 0%, 45.9%)
CIE-LABlab(27.35, 23.53, -47.19)
CIE-LCHlch(27.35, 52.73, 296.50°)
OKLaboklab(38.29% 0.0059 -0.1358)
OKLCHoklch(38.29% 0.136 272.5)
XYZxyz(7.0823, 5.2206, 24.6743)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D388A #8A7F2D
analogous
#2D668A #2D388A #502D8A
triadic
#2D388A #8A2D38 #388A2D
tetradic
#2D388A #8A2D66 #8A7F2D #2D8A50
square
#2D388A #8A2D66 #8A7F2D #2D8A50
split-complementary
#2D388A #8A502D #668A2D
monochromatic
#0F132E #1E255C #2D388A #3C4BB8 #6571CD

Accessibility & contrast

On white

10.27
#2D388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D388A
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D388A#FFFFFF#000000##FFFFFF
##2D388A1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d388a;
/* rgb */ color: rgb(45, 56, 138);
/* oklch */ color: oklch(38.3% 0.136 272.5);
Tailwind
colors: {
  custom: {
    50: '#716ead',
    500: '#2d388a',
    950: '#000000',
  },
}
SCSS
$custom: #2d388a;
$custom-light: #716ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2d388a",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 232.903,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38294,
    "c": 0.13594,
    "h": 272.5
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#2D388A
secondary
#B3A960
accent
#CA4DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D388A

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

Preview Lab → · Contrast checker → · Palette generator →

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