#2D398C#2D398C

#2D398C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.137 H 272.1°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2D398C
RGBrgb(45, 57, 140)
HSLhsl(232, 51%, 36%)
HSVhsv(232, 68%, 55%)
CMYKcmyk(67.9%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.78, 23.60, -47.73)
CIE-LCHlch(27.78, 53.24, 296.31°)
OKLaboklab(38.66% 0.005 -0.1374)
OKLCHoklch(38.66% 0.137 272.1)
XYZxyz(7.2774, 5.3769, 25.4602)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D398C #8C802D
analogous
#2D698C #2D398C #512D8C
triadic
#2D398C #8C2D39 #398C2D
tetradic
#2D398C #8C2D69 #8C802D #2D8C51
square
#2D398C #8C2D69 #8C802D #2D8C51
split-complementary
#2D398C #8C512D #698C2D
monochromatic
#0F132F #1E265E #2D398C #3C4CBA #6673CE

Accessibility & contrast

On white

10.12
#2D398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D398C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D398C#FFFFFF#000000##FFFFFF
##2D398C1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d398c;
/* rgb */ color: rgb(45, 57, 140);
/* oklch */ color: oklch(38.7% 0.137 272.1);
Tailwind
colors: {
  custom: {
    50: '#726fae',
    500: '#2d398c',
    950: '#000000',
  },
}
SCSS
$custom: #2d398c;
$custom-light: #726fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d398c",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 232.421,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38664,
    "c": 0.13748,
    "h": 272.1
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#2D398C
secondary
#B4AA60
accent
#C94DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D398C

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

Preview Lab → · Contrast checker → · Palette generator →

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