#2C237D#2C237D

#2C237D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.145 H 279.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2C237D
RGBrgb(44, 35, 125)
HSLhsl(246, 56%, 31%)
HSVhsv(246, 72%, 49%)
CMYKcmyk(64.8%, 72%, 0%, 51%)
CIE-LABlab(20.90, 32.47, -49.58)
CIE-LCHlch(20.90, 59.26, 303.22°)
OKLaboklab(33.19% 0.0239 -0.143)
OKLCHoklch(33.19% 0.145 279.5)
XYZxyz(5.3402, 3.2178, 19.7377)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C237D #747D23
analogous
#23477D #2C237D #59237D
triadic
#2C237D #7D2C23 #237D2C
tetradic
#2C237D #7D2347 #747D23 #237D59
square
#2C237D #7D2347 #747D23 #237D59
split-complementary
#2C237D #7D5923 #477D23
monochromatic
#0A081D #1B164D #2C237D #3D30AD #5A4DCD

Accessibility & contrast

On white

12.78
#2C237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C237D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C237D#FFFFFF#000000##FFFFFF
##2C237D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c237d;
/* rgb */ color: rgb(44, 35, 125);
/* oklch */ color: oklch(33.2% 0.145 279.5);
Tailwind
colors: {
  custom: {
    50: '#705fa4',
    500: '#2c237d',
    950: '#000000',
  },
}
SCSS
$custom: #2c237d;
$custom-light: #705fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c237d",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 246,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33194,
    "c": 0.14495,
    "h": 279.5
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#2C237D
secondary
#A6AF4C
accent
#E048D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C237D

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

Preview Lab → · Contrast checker → · Palette generator →

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