#2C238A#2C238A

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

Color values

HEX#2C238A
RGBrgb(44, 35, 138)
HSLhsl(245, 60%, 34%)
HSVhsv(245, 75%, 54%)
CMYKcmyk(68.1%, 74.6%, 0%, 45.9%)
CIE-LABlab(22.20, 36.88, -55.62)
CIE-LCHlch(22.20, 66.73, 303.55°)
OKLaboklab(34.52% 0.0214 -0.1606)
OKLCHoklch(34.52% 0.162 277.6)
XYZxyz(6.2257, 3.5720, 24.4012)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C238A #818A23
analogous
#234E8A #2C238A #60238A
triadic
#2C238A #8A2C23 #238A2C
tetradic
#2C238A #8A234E #818A23 #238A60
square
#2C238A #8A234E #818A23 #238A60
split-complementary
#2C238A #8A6023 #4E8A23
monochromatic
#0D0A28 #1C1759 #2C238A #3C2FBB #5F54D4

Accessibility & contrast

On white

12.25
#2C238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C238A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C238A#FFFFFF#000000##FFFFFF
##2C238A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.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: #2c238a;
/* rgb */ color: rgb(44, 35, 138);
/* oklch */ color: oklch(34.5% 0.162 277.6);
Tailwind
colors: {
  custom: {
    50: '#735fad',
    500: '#2c238a',
    950: '#000000',
  },
}
SCSS
$custom: #2c238a;
$custom-light: #735fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c238a",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 245.243,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34523,
    "c": 0.16205,
    "h": 277.6
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#2C238A
secondary
#AFB751
accent
#E345D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C238A

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

Preview Lab → · Contrast checker → · Palette generator →

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