#2D238A#2D238A

#2D238A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.162 H 278.1°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2D238A
RGBrgb(45, 35, 138)
HSLhsl(246, 60%, 34%)
HSVhsv(246, 75%, 54%)
CMYKcmyk(67.4%, 74.6%, 0%, 45.9%)
CIE-LABlab(22.28, 37.01, -55.48)
CIE-LCHlch(22.28, 66.69, 303.71°)
OKLaboklab(34.6% 0.0228 -0.1602)
OKLCHoklch(34.6% 0.162 278.1)
XYZxyz(6.2692, 3.5944, 24.4032)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D238A #808A23
analogous
#234D8A #2D238A #61238A
triadic
#2D238A #8A2D23 #238A2D
tetradic
#2D238A #8A234D #808A23 #238A61
square
#2D238A #8A234D #808A23 #238A61
split-complementary
#2D238A #8A6123 #4D8A23
monochromatic
#0D0A28 #1D1759 #2D238A #3D2FBB #6054D4

Accessibility & contrast

On white

12.22
#2D238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D238A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D238A#FFFFFF#000000##FFFFFF
##2D238A1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d238a;
/* rgb */ color: rgb(45, 35, 138);
/* oklch */ color: oklch(34.6% 0.162 278.1);
Tailwind
colors: {
  custom: {
    50: '#7360ad',
    500: '#2d238a',
    950: '#000000',
  },
}
SCSS
$custom: #2d238a;
$custom-light: #7360ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d238a",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 245.825,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.346,
    "c": 0.16182,
    "h": 278.1
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#2D238A
secondary
#AEB751
accent
#E345D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D238A

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

Preview Lab → · Contrast checker → · Palette generator →

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