#2C238F#2C238F

#2C238F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.168 H 276.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2C238F
RGBrgb(44, 35, 143)
HSLhsl(245, 61%, 35%)
HSVhsv(245, 76%, 56%)
CMYKcmyk(69.2%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.72, 38.56, -57.87)
CIE-LCHlch(22.72, 69.54, 303.67°)
OKLaboklab(35.05% 0.0203 -0.1672)
OKLCHoklch(35.05% 0.168 276.9)
XYZxyz(6.5960, 3.7201, 26.3517)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C238F #868F23
analogous
#23508F #2C238F #62238F
triadic
#2C238F #8F2C23 #238F2C
tetradic
#2C238F #8F2350 #868F23 #238F62
square
#2C238F #8F2350 #868F23 #238F62
split-complementary
#2C238F #8F6223 #508F23
monochromatic
#0E0B2D #1D175E #2C238F #3B2FC0 #6157D6

Accessibility & contrast

On white

12.04
#2C238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C238F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C238F#FFFFFF#000000##FFFFFF
##2C238F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c238f;
/* rgb */ color: rgb(44, 35, 143);
/* oklch */ color: oklch(35.0% 0.168 276.9);
Tailwind
colors: {
  custom: {
    50: '#7460b1',
    500: '#2c238f',
    950: '#000000',
  },
}
SCSS
$custom: #2c238f;
$custom-light: #7460b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c238f",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 245,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35049,
    "c": 0.16844,
    "h": 276.9
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#2C238F
secondary
#B1BA54
accent
#E444D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C238F

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

Preview Lab → · Contrast checker → · Palette generator →

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