#231F71#231F71

#231F71 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.135 H 276.9°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#231F71
RGBrgb(35, 31, 113)
HSLhsl(243, 57%, 28%)
HSVhsv(243, 73%, 44%)
CMYKcmyk(69%, 72.6%, 0%, 55.7%)
CIE-LABlab(18.05, 29.48, -46.59)
CIE-LCHlch(18.05, 55.13, 302.32°)
OKLaboklab(30.6% 0.0163 -0.1345)
OKLCHoklch(30.6% 0.135 276.9)
XYZxyz(4.1628, 2.5292, 15.8884)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F71 #6D711F
analogous
#1F4471 #231F71 #4C1F71
triadic
#231F71 #71231F #1F7123
tetradic
#231F71 #711F44 #6D711F #1F714C
square
#231F71 #711F44 #6D711F #1F714C
split-complementary
#231F71 #714C1F #44711F
monochromatic
#070718 #141241 #231F71 #322CA1 #4740CB

Accessibility & contrast

On white

13.94
#231F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#231F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F71
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F71#FFFFFF#000000##FFFFFF
##231F711.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231f71;
/* rgb */ color: rgb(35, 31, 113);
/* oklch */ color: oklch(30.6% 0.135 276.9);
Tailwind
colors: {
  custom: {
    50: '#695b9b',
    500: '#231f71',
    950: '#000000',
  },
}
SCSS
$custom: #231f71;
$custom-light: #695b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#231f71",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 242.927,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.306,
    "c": 0.13548,
    "h": 276.9
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#231F71
secondary
#A0A547
accent
#E048D9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #231F71

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

Preview Lab → · Contrast checker → · Palette generator →

#231F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva