#2D238C#2D238C

#2D238C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.164 H 277.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2D238C
RGBrgb(45, 35, 140)
HSLhsl(246, 60%, 34%)
HSVhsv(246, 75%, 55%)
CMYKcmyk(67.9%, 75%, 0%, 45.1%)
CIE-LABlab(22.49, 37.68, -56.39)
CIE-LCHlch(22.49, 67.82, 303.75°)
OKLaboklab(34.81% 0.0223 -0.1629)
OKLCHoklch(34.81% 0.164 277.8)
XYZxyz(6.4153, 3.6529, 25.1729)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D238C #828C23
analogous
#234E8C #2D238C #62238C
triadic
#2D238C #8C2D23 #238C2D
tetradic
#2D238C #8C234E #828C23 #238C62
square
#2D238C #8C234E #828C23 #238C62
split-complementary
#2D238C #8C6223 #4E8C23
monochromatic
#0E0B2A #1D175B #2D238C #3D2FBD #6155D4

Accessibility & contrast

On white

12.13
#2D238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D238C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D238C#FFFFFF#000000##FFFFFF
##2D238C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d238c;
/* rgb */ color: rgb(45, 35, 140);
/* oklch */ color: oklch(34.8% 0.164 277.8);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2d238c',
    950: '#000000',
  },
}
SCSS
$custom: #2d238c;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d238c",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 245.714,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34809,
    "c": 0.16439,
    "h": 277.8
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#2D238C
secondary
#AFB852
accent
#E345D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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