#231F80#231F80

#231F80 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.156 H 275.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#231F80
RGBrgb(35, 31, 128)
HSLhsl(242, 61%, 31%)
HSVhsv(242, 76%, 50%)
CMYKcmyk(72.7%, 75.8%, 0%, 49.8%)
CIE-LABlab(19.62, 34.78, -53.60)
CIE-LCHlch(19.62, 63.90, 302.98°)
OKLaboklab(32.2% 0.0136 -0.155)
OKLCHoklch(32.2% 0.156 275)
XYZxyz(5.0781, 2.8953, 20.7091)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F80 #7C801F
analogous
#1F4B80 #231F80 #531F80
triadic
#231F80 #80231F #1F8023
tetradic
#231F80 #801F4B #7C801F #1F8053
square
#231F80 #801F4B #7C801F #1F8053
split-complementary
#231F80 #80531F #4B801F
monochromatic
#08071D #16134F #231F80 #302BB1 #4D47D2

Accessibility & contrast

On white

13.30
#231F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#231F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F80
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F80#FFFFFF#000000##FFFFFF
##231F801.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231f80;
/* rgb */ color: rgb(35, 31, 128);
/* oklch */ color: oklch(32.2% 0.156 275.0);
Tailwind
colors: {
  custom: {
    50: '#6d5ca6',
    500: '#231f80',
    950: '#000000',
  },
}
SCSS
$custom: #231f80;
$custom-light: #6d5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#231f80",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 242.474,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32195,
    "c": 0.15557,
    "h": 275
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#231F80
secondary
#AFB348
accent
#E444DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231F80

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

Preview Lab → · Contrast checker → · Palette generator →

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