#231FA7#231FA7

#231FA7 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.6% C 0.204 H 271.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#231FA7
RGBrgb(35, 31, 167)
HSLhsl(242, 69%, 39%)
HSVhsv(242, 81%, 65%)
CMYKcmyk(79%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.09, 47.76, -70.35)
CIE-LCHlch(24.09, 85.03, 304.17°)
OKLaboklab(36.64% 0.005 -0.2036)
OKLCHoklch(36.64% 0.204 271.4)
XYZxyz(8.1558, 4.1264, 36.9184)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FA7 #A3A71F
analogous
#1F5FA7 #231FA7 #671FA7
triadic
#231FA7 #A7231F #1FA723
tetradic
#231FA7 #A71F5F #A3A71F #1FA767
square
#231FA7 #A71F5F #A3A71F #1FA767
split-complementary
#231FA7 #A7671F #5FA71F
monochromatic
#0D0C40 #181573 #231FA7 #312BD8 #635FE1

Accessibility & contrast

On white

11.50
#231FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#231FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231FA7
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FA7#FFFFFF#000000##FFFFFF
##231FA71.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0032A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #231fa7;
/* rgb */ color: rgb(35, 31, 167);
/* oklch */ color: oklch(36.6% 0.204 271.4);
Tailwind
colors: {
  custom: {
    50: '#775ec3',
    500: '#231fa7',
    950: '#000000',
  },
}
SCSS
$custom: #231fa7;
$custom-light: #775ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#231fa7",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 241.765,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.20368,
    "h": 271.4
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#231FA7
secondary
#C3C65C
accent
#EC3CE6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #231FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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