#231C79#231C79

#231C79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.150 H 276.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#231C79
RGBrgb(35, 28, 121)
HSLhsl(245, 62%, 29%)
HSVhsv(245, 77%, 47%)
CMYKcmyk(71.1%, 76.9%, 0%, 52.5%)
CIE-LABlab(18.22, 34.15, -51.45)
CIE-LCHlch(18.22, 61.75, 303.57°)
OKLaboklab(30.98% 0.0169 -0.1487)
OKLCHoklch(30.98% 0.15 276.5)
XYZxyz(4.5585, 2.5679, 18.3409)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231C79 #72791C
analogous
#1C4479 #231C79 #521C79
triadic
#231C79 #79231C #1C7923
tetradic
#231C79 #791C44 #72791C #1C7952
square
#231C79 #791C44 #72791C #1C7952
split-complementary
#231C79 #79521C #44791C
monochromatic
#070619 #151047 #231C79 #3128AB #483DD2

Accessibility & contrast

On white

13.87
#231C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231C79
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231C79#FFFFFF#000000##FFFFFF
##231C791.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231c79;
/* rgb */ color: rgb(35, 28, 121);
/* oklch */ color: oklch(31.0% 0.150 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c5aa1',
    500: '#231c79',
    950: '#000000',
  },
}
SCSS
$custom: #231c79;
$custom-light: #6c5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#231c79",
  "rgb": {
    "r": 35,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 244.516,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30977,
    "c": 0.14963,
    "h": 276.5
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#231C79
secondary
#A5AD44
accent
#E542D9
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #231C79

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

Preview Lab → · Contrast checker → · Palette generator →

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