#231772#231772

#231772 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.146 H 278.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#231772
RGBrgb(35, 23, 114)
HSLhsl(248, 66%, 27%)
HSVhsv(248, 80%, 45%)
CMYKcmyk(69.3%, 79.8%, 0%, 55.3%)
CIE-LABlab(16.43, 34.66, -49.90)
CIE-LCHlch(16.43, 60.76, 304.78°)
OKLaboklab(29.48% 0.0216 -0.1441)
OKLCHoklch(29.48% 0.146 278.5)
XYZxyz(4.0358, 2.1847, 16.1253)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231772 #667217
analogous
#173972 #231772 #511772
triadic
#231772 #722317 #177223
tetradic
#231772 #721739 #667217 #177251
square
#231772 #721739 #667217 #177251
split-complementary
#231772 #725117 #397217
monochromatic
#080519 #130D3F #231772 #3321A5 #442ED5

Accessibility & contrast

On white

14.61
#231772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#231772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231772
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231772#FFFFFF#000000##FFFFFF
##2317721.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #231772;
/* rgb */ color: rgb(35, 23, 114);
/* oklch */ color: oklch(29.5% 0.146 278.5);
Tailwind
colors: {
  custom: {
    50: '#6b569c',
    500: '#231772',
    950: '#000000',
  },
}
SCSS
$custom: #231772;
$custom-light: #6b569c;
$custom-dark: #000000;
JSON
{
  "hex": "#231772",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 247.912,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29479,
    "c": 0.14574,
    "h": 278.5
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

primary
#231772
secondary
#9AA83D
accent
#E93ED3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231772

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

Preview Lab → · Contrast checker → · Palette generator →

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