#2D237D#2D237D

#2D237D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.145 H 280.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#2D237D
RGBrgb(45, 35, 125)
HSLhsl(247, 56%, 31%)
HSVhsv(247, 72%, 49%)
CMYKcmyk(64%, 72%, 0%, 51%)
CIE-LABlab(20.98, 32.62, -49.43)
CIE-LCHlch(20.98, 59.23, 303.42°)
OKLaboklab(33.28% 0.0253 -0.1425)
OKLCHoklch(33.28% 0.145 280.1)
XYZxyz(5.3837, 3.2402, 19.7398)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D237D #737D23
analogous
#23467D #2D237D #5A237D
triadic
#2D237D #7D2D23 #237D2D
tetradic
#2D237D #7D2346 #737D23 #237D5A
square
#2D237D #7D2346 #737D23 #237D5A
split-complementary
#2D237D #7D5A23 #467D23
monochromatic
#0B081D #1C164D #2D237D #3E30AD #5B4DCD

Accessibility & contrast

On white

12.74
#2D237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D237D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D237D#FFFFFF#000000##FFFFFF
##2D237D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d237d;
/* rgb */ color: rgb(45, 35, 125);
/* oklch */ color: oklch(33.3% 0.145 280.1);
Tailwind
colors: {
  custom: {
    50: '#715fa4',
    500: '#2d237d',
    950: '#000000',
  },
}
SCSS
$custom: #2d237d;
$custom-light: #715fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d237d",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 246.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33277,
    "c": 0.14475,
    "h": 280.1
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#2D237D
secondary
#A4AF4C
accent
#E048CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D237D

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

Preview Lab → · Contrast checker → · Palette generator →

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