#2D238D#2D238D

#2D238D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.166 H 277.7°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2D238D
RGBrgb(45, 35, 141)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 55%)
CMYKcmyk(68.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.59, 38.01, -56.84)
CIE-LCHlch(22.59, 68.38, 303.77°)
OKLaboklab(34.91% 0.0221 -0.1642)
OKLCHoklch(34.91% 0.166 277.7)
XYZxyz(6.4894, 3.6825, 25.5629)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D238D #838D23
analogous
#234E8D #2D238D #62238D
triadic
#2D238D #8D2D23 #238D2D
tetradic
#2D238D #8D234E #838D23 #238D62
square
#2D238D #8D234E #838D23 #238D62
split-complementary
#2D238D #8D6223 #4E8D23
monochromatic
#0E0B2B #1D175C #2D238D #3D2FBE #6255D5

Accessibility & contrast

On white

12.09
#2D238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D238D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D238D#FFFFFF#000000##FFFFFF
##2D238D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d238d;
/* rgb */ color: rgb(45, 35, 141);
/* oklch */ color: oklch(34.9% 0.166 277.7);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2d238d',
    950: '#000000',
  },
}
SCSS
$custom: #2d238d;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d238d",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 245.66,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34913,
    "c": 0.16566,
    "h": 277.7
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#2D238D
secondary
#AFB953
accent
#E344D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D238D

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

Preview Lab → · Contrast checker → · Palette generator →

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