#231B78#231B78

#231B78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.149 H 276.8°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#231B78
RGBrgb(35, 27, 120)
HSLhsl(245, 63%, 29%)
HSVhsv(245, 78%, 47%)
CMYKcmyk(70.8%, 77.5%, 0%, 52.9%)
CIE-LABlab(17.90, 34.39, -51.33)
CIE-LCHlch(17.90, 61.79, 303.82°)
OKLaboklab(30.72% 0.0177 -0.1483)
OKLCHoklch(30.72% 0.149 276.8)
XYZxyz(4.4741, 2.4969, 18.0118)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B78 #70781B
analogous
#1B4278 #231B78 #521B78
triadic
#231B78 #78231B #1B7823
tetradic
#231B78 #781B42 #70781B #1B7852
square
#231B78 #781B42 #70781B #1B7852
split-complementary
#231B78 #78521B #42781B
monochromatic
#070619 #141046 #231B78 #3226AA #483BD3

Accessibility & contrast

On white

14.01
#231B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#231B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B78
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B78#FFFFFF#000000##FFFFFF
##231B781.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #231b78;
/* rgb */ color: rgb(35, 27, 120);
/* oklch */ color: oklch(30.7% 0.149 276.8);
Tailwind
colors: {
  custom: {
    50: '#6c59a0',
    500: '#231b78',
    950: '#000000',
  },
}
SCSS
$custom: #231b78;
$custom-light: #6c59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#231b78",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 245.161,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30718,
    "c": 0.14939,
    "h": 276.8
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#231B78
secondary
#A3AC43
accent
#E641D8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #231B78

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

Preview Lab → · Contrast checker → · Palette generator →

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