#2D239B#2D239B

#2D239B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.183 H 275.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2D239B
RGBrgb(45, 35, 155)
HSLhsl(245, 63%, 37%)
HSVhsv(245, 77%, 61%)
CMYKcmyk(71%, 77.4%, 0%, 39.2%)
CIE-LABlab(24.08, 42.61, -63.03)
CIE-LCHlch(24.08, 76.08, 304.06°)
OKLaboklab(36.41% 0.019 -0.1822)
OKLCHoklch(36.41% 0.183 275.9)
XYZxyz(7.5977, 4.1258, 31.4000)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D239B #919B23
analogous
#23559B #2D239B #69239B
triadic
#2D239B #9B2D23 #239B2D
tetradic
#2D239B #9B2355 #919B23 #239B69
square
#2D239B #9B2355 #919B23 #239B69
split-complementary
#2D239B #9B6923 #559B23
monochromatic
#100C37 #1F1869 #2D239B #3B2ECD #685EDB

Accessibility & contrast

On white

11.50
#2D239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D239B
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D239B#FFFFFF#000000##FFFFFF
##2D239B1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d239b;
/* rgb */ color: rgb(45, 35, 155);
/* oklch */ color: oklch(36.4% 0.183 275.9);
Tailwind
colors: {
  custom: {
    50: '#7760ba',
    500: '#2d239b',
    950: '#000000',
  },
}
SCSS
$custom: #2d239b;
$custom-light: #7760ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d239b",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 245,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36411,
    "c": 0.18318,
    "h": 275.9
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#2D239B
secondary
#B7BF5A
accent
#E642D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D239B

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

Preview Lab → · Contrast checker → · Palette generator →

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