#2C23A8#2C23A8

#2C23A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.199 H 274.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2C23A8
RGBrgb(44, 35, 168)
HSLhsl(244, 66%, 40%)
HSVhsv(244, 79%, 66%)
CMYKcmyk(73.8%, 79.2%, 0%, 34.1%)
CIE-LABlab(25.45, 46.70, -68.67)
CIE-LCHlch(25.45, 83.04, 304.22°)
OKLaboklab(37.78% 0.0146 -0.1986)
OKLCHoklch(37.78% 0.199 274.2)
XYZxyz(8.7053, 4.5638, 37.4603)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C23A8 #9FA823
analogous
#235DA8 #2C23A8 #6E23A8
triadic
#2C23A8 #A82C23 #23A82C
tetradic
#2C23A8 #A8235D #9FA823 #23A86E
square
#2C23A8 #A8235D #9FA823 #23A86E
split-complementary
#2C23A8 #A86E23 #5DA823
monochromatic
#110E43 #1F1875 #2C23A8 #3E34D5 #6E66DF

Accessibility & contrast

On white

10.98
#2C23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C23A8
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C23A8#FFFFFF#000000##FFFFFF
##2C23A81.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c23a8;
/* rgb */ color: rgb(44, 35, 168);
/* oklch */ color: oklch(37.8% 0.199 274.2);
Tailwind
colors: {
  custom: {
    50: '#7a61c3',
    500: '#2c23a8',
    950: '#000000',
  },
}
SCSS
$custom: #2c23a8;
$custom-light: #7a61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c23a8",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 244.06,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37778,
    "c": 0.19916,
    "h": 274.2
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#2C23A8
secondary
#BEC562
accent
#E83FDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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