#2D237A#2D237A

#2D237A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.141 H 280.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2D237A
RGBrgb(45, 35, 122)
HSLhsl(247, 55%, 31%)
HSVhsv(247, 71%, 48%)
CMYKcmyk(63.1%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.69, 31.60, -48.00)
CIE-LCHlch(20.69, 57.47, 303.36°)
OKLaboklab(32.98% 0.0258 -0.1383)
OKLCHoklch(32.98% 0.141 280.6)
XYZxyz(5.1950, 3.1647, 18.7457)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D237A #707A23
analogous
#23447A #2D237A #58237A
triadic
#2D237A #7A2D23 #237A2D
tetradic
#2D237A #7A2344 #707A23 #237A58
square
#2D237A #7A2344 #707A23 #237A58
split-complementary
#2D237A #7A5823 #447A23
monochromatic
#0A081B #1B154A #2D237A #3F31AA #5A4CCC

Accessibility & contrast

On white

12.86
#2D237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D237A
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D237A#FFFFFF#000000##FFFFFF
##2D237A1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d237a;
/* rgb */ color: rgb(45, 35, 122);
/* oklch */ color: oklch(33.0% 0.141 280.6);
Tailwind
colors: {
  custom: {
    50: '#705fa1',
    500: '#2d237a',
    950: '#000000',
  },
}
SCSS
$custom: #2d237a;
$custom-light: #705fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d237a",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 246.897,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3298,
    "c": 0.14071,
    "h": 280.6
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#2D237A
secondary
#A2AD4C
accent
#DF49CE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D237A

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

Preview Lab → · Contrast checker → · Palette generator →

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