#231778#231778

#231778 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.153 H 277.5°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#231778
RGBrgb(35, 23, 120)
HSLhsl(247, 68%, 28%)
HSVhsv(247, 81%, 47%)
CMYKcmyk(70.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(17.11, 36.65, -52.64)
CIE-LCHlch(17.11, 64.15, 304.85°)
OKLaboklab(30.16% 0.02 -0.1521)
OKLCHoklch(30.16% 0.153 277.5)
XYZxyz(4.3886, 2.3258, 17.9833)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231778 #6C7817
analogous
#173B78 #231778 #531778
triadic
#231778 #782317 #177823
tetradic
#231778 #78173B #6C7817 #177853
square
#231778 #78173B #6C7817 #177853
split-complementary
#231778 #785317 #3B7817
monochromatic
#07051A #140D45 #231778 #3221AB #4632D8

Accessibility & contrast

On white

14.33
#231778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#231778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231778
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231778#FFFFFF#000000##FFFFFF
##2317781.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231778;
/* rgb */ color: rgb(35, 23, 120);
/* oklch */ color: oklch(30.2% 0.153 277.5);
Tailwind
colors: {
  custom: {
    50: '#6c57a0',
    500: '#231778',
    950: '#000000',
  },
}
SCSS
$custom: #231778;
$custom-light: #6c57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#231778",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 247.423,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.15342,
    "h": 277.5
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#231778
secondary
#9FAD3E
accent
#EB3DD5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231778

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

Preview Lab → · Contrast checker → · Palette generator →

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