#2D238E#2D238E

#2D238E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.167 H 277.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2D238E
RGBrgb(45, 35, 142)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 56%)
CMYKcmyk(68.3%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.70, 38.34, -57.29)
CIE-LCHlch(22.70, 68.94, 303.79°)
OKLaboklab(35.02% 0.0219 -0.1655)
OKLCHoklch(35.02% 0.167 277.5)
XYZxyz(6.5641, 3.7124, 25.9566)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D238E #848E23
analogous
#234F8E #2D238E #62238E
triadic
#2D238E #8E2D23 #238E2D
tetradic
#2D238E #8E234F #848E23 #238E62
square
#2D238E #8E234F #848E23 #238E62
split-complementary
#2D238E #8E6223 #4F8E23
monochromatic
#0E0B2C #1D175D #2D238E #3D2FBF #6256D5

Accessibility & contrast

On white

12.05
#2D238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D238E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D238E#FFFFFF#000000##FFFFFF
##2D238E1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d238e;
/* rgb */ color: rgb(45, 35, 142);
/* oklch */ color: oklch(35.0% 0.167 277.5);
Tailwind
colors: {
  custom: {
    50: '#7460b0',
    500: '#2d238e',
    950: '#000000',
  },
}
SCSS
$custom: #2d238e;
$custom-light: #7460b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d238e",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 245.607,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35019,
    "c": 0.16693,
    "h": 277.5
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#2D238E
secondary
#B0B953
accent
#E444D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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