#231FA1#231FA1

#231FA1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.197 H 271.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#231FA1
RGBrgb(35, 31, 161)
HSLhsl(242, 68%, 38%)
HSVhsv(242, 81%, 63%)
CMYKcmyk(78.3%, 80.7%, 0%, 36.9%)
CIE-LABlab(23.37, 45.84, -67.89)
CIE-LCHlch(23.37, 81.92, 304.03°)
OKLaboklab(35.94% 0.0064 -0.1965)
OKLCHoklch(35.94% 0.197 271.9)
XYZxyz(7.6140, 3.9097, 34.0647)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FA1 #9DA11F
analogous
#1F5CA1 #231FA1 #641FA1
triadic
#231FA1 #A1231F #1FA123
tetradic
#231FA1 #A11F5C #9DA11F #1FA164
square
#231FA1 #A11F5C #9DA11F #1FA164
split-complementary
#231FA1 #A1641F #5CA11F
monochromatic
#0D0B3A #18156E #231FA1 #2E29D4 #5F5BDF

Accessibility & contrast

On white

11.78
#231FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#231FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231FA1
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FA1#FFFFFF#000000##FFFFFF
##231FA11.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #231fa1;
/* rgb */ color: rgb(35, 31, 161);
/* oklch */ color: oklch(35.9% 0.197 271.9);
Tailwind
colors: {
  custom: {
    50: '#755ebe',
    500: '#231fa1',
    950: '#000000',
  },
}
SCSS
$custom: #231fa1;
$custom-light: #755ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#231fa1",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 241.846,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35937,
    "c": 0.1966,
    "h": 271.9
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#231FA1
secondary
#C0C458
accent
#EB3DE5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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