#231F56#231F56

#231F56 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.096 H 281.5°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#231F56
RGBrgb(35, 31, 86)
HSLhsl(244, 47%, 23%)
HSVhsv(244, 64%, 34%)
CMYKcmyk(59.3%, 64%, 0%, 66.3%)
CIE-LABlab(15.53, 19.64, -32.88)
CIE-LCHlch(15.53, 38.29, 300.85°)
OKLaboklab(27.99% 0.0191 -0.0943)
OKLCHoklch(27.99% 0.096 281.5)
XYZxyz(2.8623, 2.0090, 9.0392)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F56 #52561F
analogous
#1F3656 #231F56 #3E1F56
triadic
#231F56 #56231F #1F5623
tetradic
#231F56 #561F36 #52561F #1F563E
square
#231F56 #561F36 #52561F #1F563E
split-complementary
#231F56 #563E1F #36561F
monochromatic
#090816 #110F29 #231F56 #352F83 #483FB0

Accessibility & contrast

On white

14.98
#231F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#231F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F56
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F56#FFFFFF#000000##FFFFFF
##231F561.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#0B2C37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231f56;
/* rgb */ color: rgb(35, 31, 86);
/* oklch */ color: oklch(28.0% 0.096 281.5);
Tailwind
colors: {
  custom: {
    50: '#635a86',
    500: '#231f56',
    950: '#000000',
  },
}
SCSS
$custom: #231f56;
$custom-light: #635a86;
$custom-dark: #000000;
JSON
{
  "hex": "#231f56",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 244.364,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2799,
    "c": 0.09619,
    "h": 281.5
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#231F56
secondary
#868B46
accent
#D751CD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #231F56

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

Preview Lab → · Contrast checker → · Palette generator →

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