#231281#231281

#231281 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.169 H 276.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#231281
RGBrgb(35, 18, 129)
HSLhsl(249, 76%, 29%)
HSVhsv(249, 86%, 51%)
CMYKcmyk(72.9%, 86%, 0%, 49.4%)
CIE-LABlab(17.34, 42.00, -58.01)
CIE-LCHlch(17.34, 71.62, 305.91°)
OKLaboklab(30.64% 0.0195 -0.1676)
OKLCHoklch(30.64% 0.169 276.6)
XYZxyz(4.8706, 2.3745, 20.9663)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231281 #708112
analogous
#123981 #231281 #5B1281
triadic
#231281 #812312 #128123
tetradic
#231281 #811239 #708112 #12815B
square
#231281 #811239 #708112 #12815B
split-complementary
#231281 #815B12 #398112
monochromatic
#07041B #140B4B #231281 #3219B7 #482CE2

Accessibility & contrast

On white

14.24
#231281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#231281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231281
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231281#FFFFFF#000000##FFFFFF
##2312811.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #231281;
/* rgb */ color: rgb(35, 18, 129);
/* oklch */ color: oklch(30.6% 0.169 276.6);
Tailwind
colors: {
  custom: {
    50: '#6f55a7',
    500: '#231281',
    950: '#000000',
  },
}
SCSS
$custom: #231281;
$custom-light: #6f55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#231281",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 249.189,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30636,
    "c": 0.16874,
    "h": 276.6
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#231281
secondary
#A3B738
accent
#F236D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #231281

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

Preview Lab → · Contrast checker → · Palette generator →

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