#2D398D#2D398D

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

Color values

HEX#2D398D
RGBrgb(45, 57, 141)
HSLhsl(233, 52%, 36%)
HSVhsv(233, 68%, 55%)
CMYKcmyk(68.1%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.86, 23.97, -48.22)
CIE-LCHlch(27.86, 53.84, 296.43°)
OKLaboklab(38.75% 0.005 -0.1388)
OKLCHoklch(38.75% 0.139 272.1)
XYZxyz(7.3514, 5.4066, 25.8503)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D398D #8D812D
analogous
#2D698D #2D398D #512D8D
triadic
#2D398D #8D2D39 #398D2D
tetradic
#2D398D #8D2D69 #8D812D #2D8D51
square
#2D398D #8D2D69 #8D812D #2D8D51
split-complementary
#2D398D #8D512D #698D2D
monochromatic
#0F1330 #1E265F #2D398D #3C4CBB #6673CE

Accessibility & contrast

On white

10.09
#2D398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D398D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D398D#FFFFFF#000000##FFFFFF
##2D398D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d398d;
/* rgb */ color: rgb(45, 57, 141);
/* oklch */ color: oklch(38.7% 0.139 272.1);
Tailwind
colors: {
  custom: {
    50: '#726faf',
    500: '#2d398d',
    950: '#000000',
  },
}
SCSS
$custom: #2d398d;
$custom-light: #726faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d398d",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 232.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.13892,
    "h": 272.1
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

primary
#2D398D
secondary
#B5AA61
accent
#C94DDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D398D

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

Preview Lab → · Contrast checker → · Palette generator →

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