#231F76#231F76

#231F76 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.142 H 276.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#231F76
RGBrgb(35, 31, 118)
HSLhsl(243, 58%, 29%)
HSVhsv(243, 74%, 46%)
CMYKcmyk(70.3%, 73.7%, 0%, 53.7%)
CIE-LABlab(18.56, 31.27, -48.97)
CIE-LCHlch(18.56, 58.10, 302.56°)
OKLaboklab(31.12% 0.0155 -0.1414)
OKLCHoklch(31.12% 0.142 276.2)
XYZxyz(4.4521, 2.6449, 17.4119)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F76 #72761F
analogous
#1F4776 #231F76 #4F1F76
triadic
#231F76 #76231F #1F7623
tetradic
#231F76 #761F47 #72761F #1F764F
square
#231F76 #761F47 #72761F #1F764F
split-complementary
#231F76 #764F1F #47761F
monochromatic
#070618 #151246 #231F76 #312CA6 #4842CD

Accessibility & contrast

On white

13.73
#231F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#231F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F76
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F76#FFFFFF#000000##FFFFFF
##231F761.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231f76;
/* rgb */ color: rgb(35, 31, 118);
/* oklch */ color: oklch(31.1% 0.142 276.2);
Tailwind
colors: {
  custom: {
    50: '#6b5b9e',
    500: '#231f76',
    950: '#000000',
  },
}
SCSS
$custom: #231f76;
$custom-light: #6b5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#231f76",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 242.759,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31122,
    "c": 0.14229,
    "h": 276.2
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#231F76
secondary
#A5AA47
accent
#E246DA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #231F76

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

Preview Lab → · Contrast checker → · Palette generator →

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