#231F7F#231F7F

#231F7F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.154 H 275.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#231F7F
RGBrgb(35, 31, 127)
HSLhsl(243, 61%, 31%)
HSVhsv(243, 76%, 50%)
CMYKcmyk(72.4%, 75.6%, 0%, 50.2%)
CIE-LABlab(19.51, 34.44, -53.15)
CIE-LCHlch(19.51, 63.33, 302.94°)
OKLaboklab(32.09% 0.0138 -0.1536)
OKLCHoklch(32.09% 0.154 275.1)
XYZxyz(5.0126, 2.8691, 20.3642)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F7F #7B7F1F
analogous
#1F4B7F #231F7F #531F7F
triadic
#231F7F #7F231F #1F7F23
tetradic
#231F7F #7F1F4B #7B7F1F #1F7F53
square
#231F7F #7F1F4B #7B7F1F #1F7F53
split-complementary
#231F7F #7F531F #4B7F1F
monochromatic
#08071D #15134E #231F7F #312BB0 #4C46D2

Accessibility & contrast

On white

13.34
#231F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#231F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F7F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F7F#FFFFFF#000000##FFFFFF
##231F7F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231f7f;
/* rgb */ color: rgb(35, 31, 127);
/* oklch */ color: oklch(32.1% 0.154 275.1);
Tailwind
colors: {
  custom: {
    50: '#6d5ca5',
    500: '#231f7f',
    950: '#000000',
  },
}
SCSS
$custom: #231f7f;
$custom-light: #6d5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#231f7f",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 242.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32086,
    "c": 0.15427,
    "h": 275.1
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#231F7F
secondary
#AEB248
accent
#E444DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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