#231782#231782

#231782 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.166 H 275.9°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#231782
RGBrgb(35, 23, 130)
HSLhsl(247, 70%, 30%)
HSVhsv(247, 82%, 51%)
CMYKcmyk(73.1%, 82.3%, 0%, 49%)
CIE-LABlab(18.28, 39.92, -57.08)
CIE-LCHlch(18.28, 69.66, 304.97°)
OKLaboklab(31.32% 0.0172 -0.165)
OKLCHoklch(31.32% 0.166 275.9)
XYZxyz(5.0275, 2.5813, 21.3481)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231782 #768217
analogous
#174082 #231782 #591782
triadic
#231782 #822317 #178223
tetradic
#231782 #821740 #768217 #178259
square
#231782 #821740 #768217 #178259
split-complementary
#231782 #825917 #408217
monochromatic
#07051A #150E4E #231782 #3120B6 #4A38DC

Accessibility & contrast

On white

13.85
#231782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#231782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231782
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231782#FFFFFF#000000##FFFFFF
##2317821.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231782;
/* rgb */ color: rgb(35, 23, 130);
/* oklch */ color: oklch(31.3% 0.166 275.9);
Tailwind
colors: {
  custom: {
    50: '#6e57a8',
    500: '#231782',
    950: '#000000',
  },
}
SCSS
$custom: #231782;
$custom-light: #6e57a8;
$custom-dark: #000000;
JSON
{
  "hex": "#231782",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 246.729,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.31322,
    "c": 0.1659,
    "h": 275.9
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#231782
secondary
#A9B63E
accent
#ED3BD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #231782

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

Preview Lab → · Contrast checker → · Palette generator →

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