#231771#231771

#231771 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.144 H 278.7°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#231771
RGBrgb(35, 23, 113)
HSLhsl(248, 66%, 27%)
HSVhsv(248, 80%, 44%)
CMYKcmyk(69%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.32, 34.33, -49.44)
CIE-LCHlch(16.32, 60.19, 304.77°)
OKLaboklab(29.37% 0.0219 -0.1428)
OKLCHoklch(29.37% 0.144 278.7)
XYZxyz(3.9792, 2.1620, 15.8272)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231771 #657117
analogous
#173871 #231771 #501771
triadic
#231771 #712317 #177123
tetradic
#231771 #711738 #657117 #177150
square
#231771 #711738 #657117 #177150
split-complementary
#231771 #715017 #387117
monochromatic
#080519 #130D3E #231771 #3321A4 #442ED4

Accessibility & contrast

On white

14.66
#231771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#231771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231771
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231771#FFFFFF#000000##FFFFFF
##2317711.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #231771;
/* rgb */ color: rgb(35, 23, 113);
/* oklch */ color: oklch(29.4% 0.144 278.7);
Tailwind
colors: {
  custom: {
    50: '#6a569b',
    500: '#231771',
    950: '#000000',
  },
}
SCSS
$custom: #231771;
$custom-light: #6a569b;
$custom-dark: #000000;
JSON
{
  "hex": "#231771",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 248,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29367,
    "c": 0.14445,
    "h": 278.7
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#231771
secondary
#99A73D
accent
#E93FD2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231771

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

Preview Lab → · Contrast checker → · Palette generator →

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