#2D237C#2D237C

#2D237C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.143 H 280.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2D237C
RGBrgb(45, 35, 124)
HSLhsl(247, 56%, 31%)
HSVhsv(247, 72%, 49%)
CMYKcmyk(63.7%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.88, 32.28, -48.96)
CIE-LCHlch(20.88, 58.64, 303.40°)
OKLaboklab(33.18% 0.0255 -0.1411)
OKLCHoklch(33.18% 0.143 280.2)
XYZxyz(5.3202, 3.2148, 19.4050)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D237C #727C23
analogous
#23457C #2D237C #59237C
triadic
#2D237C #7C2D23 #237C2D
tetradic
#2D237C #7C2345 #727C23 #237C59
square
#2D237C #7C2345 #727C23 #237C59
split-complementary
#2D237C #7C5923 #457C23
monochromatic
#0A081D #1C164C #2D237C #3E30AC #5B4DCD

Accessibility & contrast

On white

12.78
#2D237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D237C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D237C#FFFFFF#000000##FFFFFF
##2D237C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d237c;
/* rgb */ color: rgb(45, 35, 124);
/* oklch */ color: oklch(33.2% 0.143 280.2);
Tailwind
colors: {
  custom: {
    50: '#705fa3',
    500: '#2d237c',
    950: '#000000',
  },
}
SCSS
$custom: #2d237c;
$custom-light: #705fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d237c",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 246.742,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33177,
    "c": 0.14341,
    "h": 280.2
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D237C

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

Preview Lab → · Contrast checker → · Palette generator →

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