#231F77#231F77

#231F77 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.144 H 276.1°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#231F77
RGBrgb(35, 31, 119)
HSLhsl(243, 59%, 29%)
HSVhsv(243, 74%, 47%)
CMYKcmyk(70.6%, 73.9%, 0%, 53.3%)
CIE-LABlab(18.67, 31.62, -49.44)
CIE-LCHlch(18.67, 58.69, 302.60°)
OKLaboklab(31.23% 0.0153 -0.1428)
OKLCHoklch(31.23% 0.144 276.1)
XYZxyz(4.5118, 2.6688, 17.7265)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F77 #73771F
analogous
#1F4777 #231F77 #4F1F77
triadic
#231F77 #77231F #1F7723
tetradic
#231F77 #771F47 #73771F #1F774F
square
#231F77 #771F47 #73771F #1F774F
split-complementary
#231F77 #774F1F #47771F
monochromatic
#070618 #151246 #231F77 #312CA8 #4943CE

Accessibility & contrast

On white

13.69
#231F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F77
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F77#FFFFFF#000000##FFFFFF
##231F771.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231f77;
/* rgb */ color: rgb(35, 31, 119);
/* oklch */ color: oklch(31.2% 0.144 276.1);
Tailwind
colors: {
  custom: {
    50: '#6b5c9f',
    500: '#231f77',
    950: '#000000',
  },
}
SCSS
$custom: #231f77;
$custom-light: #6b5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#231f77",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 242.727,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31228,
    "c": 0.14365,
    "h": 276.1
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#231F77
secondary
#A6AB47
accent
#E246DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #231F77

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

Preview Lab → · Contrast checker → · Palette generator →

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