#231579#231579

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

Color values

HEX#231579
RGBrgb(35, 21, 121)
HSLhsl(248, 70%, 28%)
HSVhsv(248, 83%, 47%)
CMYKcmyk(71.1%, 82.6%, 0%, 52.5%)
CIE-LABlab(16.86, 38.04, -53.70)
CIE-LCHlch(16.86, 65.80, 305.31°)
OKLaboklab(30.02% 0.0207 -0.1551)
OKLCHoklch(30.02% 0.157 277.6)
XYZxyz(4.4114, 2.2737, 18.2919)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231579 #6B7915
analogous
#153979 #231579 #551579
triadic
#231579 #792315 #157923
tetradic
#231579 #791539 #6B7915 #157955
square
#231579 #791539 #6B7915 #157955
split-complementary
#231579 #795515 #397915
monochromatic
#08051A #140C45 #231579 #321EAD #462EDB

Accessibility & contrast

On white

14.43
#231579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#231579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231579
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231579#FFFFFF#000000##FFFFFF
##2315791.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231579;
/* rgb */ color: rgb(35, 21, 121);
/* oklch */ color: oklch(30.0% 0.157 277.6);
Tailwind
colors: {
  custom: {
    50: '#6c56a1',
    500: '#231579',
    950: '#000000',
  },
}
SCSS
$custom: #231579;
$custom-light: #6c56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#231579",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 248.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30022,
    "c": 0.15652,
    "h": 277.6
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#231579
secondary
#9EAF3B
accent
#ED3BD4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231579

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

Preview Lab → · Contrast checker → · Palette generator →

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