#231B72#231B72

#231B72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.141 H 277.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#231B72
RGBrgb(35, 27, 114)
HSLhsl(246, 62%, 28%)
HSVhsv(246, 76%, 45%)
CMYKcmyk(69.3%, 76.3%, 0%, 55.3%)
CIE-LABlab(17.25, 32.33, -48.54)
CIE-LCHlch(17.25, 58.32, 303.66°)
OKLaboklab(30.06% 0.019 -0.1402)
OKLCHoklch(30.06% 0.141 277.7)
XYZxyz(4.1213, 2.3557, 16.1538)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B72 #6A721B
analogous
#1B3F72 #231B72 #4E1B72
triadic
#231B72 #72231B #1B7223
tetradic
#231B72 #721B3F #6A721B #1B724E
square
#231B72 #721B3F #6A721B #1B724E
split-complementary
#231B72 #724E1B #3F721B
monochromatic
#080619 #140F41 #231B72 #3227A3 #4638D0

Accessibility & contrast

On white

14.27
#231B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#231B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B72
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B72#FFFFFF#000000##FFFFFF
##231B721.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231b72;
/* rgb */ color: rgb(35, 27, 114);
/* oklch */ color: oklch(30.1% 0.141 277.7);
Tailwind
colors: {
  custom: {
    50: '#6a599b',
    500: '#231b72',
    950: '#000000',
  },
}
SCSS
$custom: #231b72;
$custom-light: #6a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#231b72",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 245.517,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30062,
    "c": 0.14149,
    "h": 277.7
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#231B72
secondary
#9DA742
accent
#E543D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231B72

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

Preview Lab → · Contrast checker → · Palette generator →

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