#2D237F#2D237F

#2D237F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.147 H 279.7°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2D237F
RGBrgb(45, 35, 127)
HSLhsl(247, 57%, 32%)
HSVhsv(247, 72%, 50%)
CMYKcmyk(64.6%, 72.4%, 0%, 50.2%)
CIE-LABlab(21.18, 33.30, -50.38)
CIE-LCHlch(21.18, 60.39, 303.46°)
OKLaboklab(33.48% 0.0249 -0.1453)
OKLCHoklch(33.48% 0.147 279.7)
XYZxyz(5.5128, 3.2918, 20.4194)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D237F #757F23
analogous
#23477F #2D237F #5B237F
triadic
#2D237F #7F2D23 #237F2D
tetradic
#2D237F #7F2347 #757F23 #237F5B
square
#2D237F #7F2347 #757F23 #237F5B
split-complementary
#2D237F #7F5B23 #477F23
monochromatic
#0B091F #1C164F #2D237F #3E30AF #5C4ECE

Accessibility & contrast

On white

12.66
#2D237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D237F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D237F#FFFFFF#000000##FFFFFF
##2D237F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d237f;
/* rgb */ color: rgb(45, 35, 127);
/* oklch */ color: oklch(33.5% 0.147 279.7);
Tailwind
colors: {
  custom: {
    50: '#715fa5',
    500: '#2d237f',
    950: '#000000',
  },
}
SCSS
$custom: #2d237f;
$custom-light: #715fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d237f",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 246.522,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.14742,
    "h": 279.7
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#2D237F
secondary
#A6B14C
accent
#E048D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D237F

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

Preview Lab → · Contrast checker → · Palette generator →

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