#231C78#231C78

#231C78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.148 H 276.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#231C78
RGBrgb(35, 28, 120)
HSLhsl(245, 62%, 29%)
HSVhsv(245, 77%, 47%)
CMYKcmyk(70.8%, 76.7%, 0%, 52.9%)
CIE-LABlab(18.11, 33.80, -50.99)
CIE-LCHlch(18.11, 61.18, 303.54°)
OKLaboklab(30.87% 0.0171 -0.1473)
OKLCHoklch(30.87% 0.148 276.6)
XYZxyz(4.4974, 2.5435, 18.0196)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231C78 #71781C
analogous
#1C4378 #231C78 #511C78
triadic
#231C78 #78231C #1C7823
tetradic
#231C78 #781C43 #71781C #1C7851
square
#231C78 #781C43 #71781C #1C7851
split-complementary
#231C78 #78511C #43781C
monochromatic
#070619 #151046 #231C78 #3128AA #483DD2

Accessibility & contrast

On white

13.92
#231C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#231C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231C78
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231C78#FFFFFF#000000##FFFFFF
##231C781.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231c78;
/* rgb */ color: rgb(35, 28, 120);
/* oklch */ color: oklch(30.9% 0.148 276.6);
Tailwind
colors: {
  custom: {
    50: '#6b5aa0',
    500: '#231c78',
    950: '#000000',
  },
}
SCSS
$custom: #231c78;
$custom-light: #6b5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#231c78",
  "rgb": {
    "r": 35,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 244.565,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30867,
    "c": 0.14833,
    "h": 276.6
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#231C78
secondary
#A4AC44
accent
#E543D9
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #231C78

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

Preview Lab → · Contrast checker → · Palette generator →

#231C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva