#231777#231777

#231777 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.152 H 277.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#231777
RGBrgb(35, 23, 119)
HSLhsl(248, 68%, 28%)
HSVhsv(248, 81%, 47%)
CMYKcmyk(70.6%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.00, 36.32, -52.19)
CIE-LCHlch(17.00, 63.59, 304.84°)
OKLaboklab(30.05% 0.0203 -0.1508)
OKLCHoklch(30.05% 0.152 277.7)
XYZxyz(4.3282, 2.3016, 17.6654)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231777 #6B7717
analogous
#173B77 #231777 #531777
triadic
#231777 #772317 #177723
tetradic
#231777 #77173B #6B7717 #177753
square
#231777 #77173B #6B7717 #177753
split-complementary
#231777 #775317 #3B7717
monochromatic
#08051A #140D44 #231777 #3221AA #4631D7

Accessibility & contrast

On white

14.38
#231777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#231777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231777
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231777#FFFFFF#000000##FFFFFF
##2317771.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231777;
/* rgb */ color: rgb(35, 23, 119);
/* oklch */ color: oklch(30.0% 0.152 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c579f',
    500: '#231777',
    950: '#000000',
  },
}
SCSS
$custom: #231777;
$custom-light: #6c579f;
$custom-dark: #000000;
JSON
{
  "hex": "#231777",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 247.5,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30047,
    "c": 0.15214,
    "h": 277.7
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#231777
secondary
#9EAC3E
accent
#EA3DD5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #231777

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

Preview Lab → · Contrast checker → · Palette generator →

#231777 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva