#2D237B#2D237B

#2D237B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.142 H 280.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2D237B
RGBrgb(45, 35, 123)
HSLhsl(247, 56%, 31%)
HSVhsv(247, 72%, 48%)
CMYKcmyk(63.4%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.79, 31.94, -48.48)
CIE-LCHlch(20.79, 58.05, 303.38°)
OKLaboklab(33.08% 0.0256 -0.1397)
OKLCHoklch(33.08% 0.142 280.4)
XYZxyz(5.2572, 3.1896, 19.0737)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D237B #717B23
analogous
#23457B #2D237B #59237B
triadic
#2D237B #7B2D23 #237B2D
tetradic
#2D237B #7B2345 #717B23 #237B59
square
#2D237B #7B2345 #717B23 #237B59
split-complementary
#2D237B #7B5923 #457B23
monochromatic
#0A081C #1C154B #2D237B #3E31AB #5B4CCC

Accessibility & contrast

On white

12.82
#2D237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D237B
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D237B#FFFFFF#000000##FFFFFF
##2D237B1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d237b;
/* rgb */ color: rgb(45, 35, 123);
/* oklch */ color: oklch(33.1% 0.142 280.4);
Tailwind
colors: {
  custom: {
    50: '#705fa2',
    500: '#2d237b',
    950: '#000000',
  },
}
SCSS
$custom: #2d237b;
$custom-light: #705fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d237b",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 246.818,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33079,
    "c": 0.14206,
    "h": 280.4
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#2D237B
secondary
#A3AE4C
accent
#DF49CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D237B

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

Preview Lab → · Contrast checker → · Palette generator →

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