#231FA8#231FA8

#231FA8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.205 H 271.3°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#231FA8
RGBrgb(35, 31, 168)
HSLhsl(242, 69%, 39%)
HSVhsv(242, 82%, 66%)
CMYKcmyk(79.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(24.20, 48.07, -70.76)
CIE-LCHlch(24.20, 85.54, 304.19°)
OKLaboklab(36.76% 0.0048 -0.2048)
OKLCHoklch(36.76% 0.205 271.3)
XYZxyz(8.2486, 4.1635, 37.4071)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FA8 #A4A81F
analogous
#1F60A8 #231FA8 #681FA8
triadic
#231FA8 #A8231F #1FA823
tetradic
#231FA8 #A81F60 #A4A81F #1FA868
square
#231FA8 #A81F60 #A4A81F #1FA868
split-complementary
#231FA8 #A8681F #60A81F
monochromatic
#0D0C41 #181574 #231FA8 #312CD8 #6460E2

Accessibility & contrast

On white

11.46
#231FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231FA8
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FA8#FFFFFF#000000##FFFFFF
##231FA81.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0032A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #231fa8;
/* rgb */ color: rgb(35, 31, 168);
/* oklch */ color: oklch(36.8% 0.205 271.3);
Tailwind
colors: {
  custom: {
    50: '#775ec3',
    500: '#231fa8',
    950: '#000000',
  },
}
SCSS
$custom: #231fa8;
$custom-light: #775ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#231fa8",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 241.752,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36759,
    "c": 0.20486,
    "h": 271.3
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#231FA8
secondary
#C3C65D
accent
#EC3CE7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #231FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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