#231FA6#231FA6

#231FA6 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.5% C 0.203 H 271.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#231FA6
RGBrgb(35, 31, 166)
HSLhsl(242, 69%, 39%)
HSVhsv(242, 81%, 65%)
CMYKcmyk(78.9%, 81.3%, 0%, 34.9%)
CIE-LABlab(23.97, 47.44, -69.94)
CIE-LCHlch(23.97, 84.51, 304.15°)
OKLaboklab(36.52% 0.0053 -0.2024)
OKLCHoklch(36.52% 0.203 271.5)
XYZxyz(8.0637, 4.0896, 36.4334)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FA6 #A2A61F
analogous
#1F5EA6 #231FA6 #661FA6
triadic
#231FA6 #A6231F #1FA623
tetradic
#231FA6 #A61F5E #A2A61F #1FA666
square
#231FA6 #A61F5E #A2A61F #1FA666
split-complementary
#231FA6 #A6661F #5EA61F
monochromatic
#0D0C3F #181572 #231FA6 #302BD7 #625EE1

Accessibility & contrast

On white

11.55
#231FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#231FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231FA6
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FA6#FFFFFF#000000##FFFFFF
##231FA61.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0032A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #231fa6;
/* rgb */ color: rgb(35, 31, 166);
/* oklch */ color: oklch(36.5% 0.203 271.5);
Tailwind
colors: {
  custom: {
    50: '#775ec2',
    500: '#231fa6',
    950: '#000000',
  },
}
SCSS
$custom: #231fa6;
$custom-light: #775ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#231fa6",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 241.778,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36523,
    "c": 0.20251,
    "h": 271.5
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#231FA6
secondary
#C2C55B
accent
#EB3CE6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #231FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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