#231F75#231F75

#231F75 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.141 H 276.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#231F75
RGBrgb(35, 31, 117)
HSLhsl(243, 58%, 29%)
HSVhsv(243, 74%, 46%)
CMYKcmyk(70.1%, 73.5%, 0%, 54.1%)
CIE-LABlab(18.46, 30.91, -48.50)
CIE-LCHlch(18.46, 57.51, 302.51°)
OKLaboklab(31.02% 0.0157 -0.1401)
OKLCHoklch(31.02% 0.141 276.4)
XYZxyz(4.3930, 2.6213, 17.1006)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F75 #71751F
analogous
#1F4675 #231F75 #4E1F75
triadic
#231F75 #75231F #1F7523
tetradic
#231F75 #751F46 #71751F #1F754E
square
#231F75 #751F46 #71751F #1F754E
split-complementary
#231F75 #754E1F #46751F
monochromatic
#070618 #151245 #231F75 #312CA5 #4842CD

Accessibility & contrast

On white

13.78
#231F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#231F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F75
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F75#FFFFFF#000000##FFFFFF
##231F751.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231f75;
/* rgb */ color: rgb(35, 31, 117);
/* oklch */ color: oklch(31.0% 0.141 276.4);
Tailwind
colors: {
  custom: {
    50: '#6a5b9e',
    500: '#231f75',
    950: '#000000',
  },
}
SCSS
$custom: #231f75;
$custom-light: #6a5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#231f75",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 242.791,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31017,
    "c": 0.14094,
    "h": 276.4
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#231F75
secondary
#A4A947
accent
#E146DA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #231F75

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

Preview Lab → · Contrast checker → · Palette generator →

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