#231F78#231F78

#231F78 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.145 H 276.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#231F78
RGBrgb(35, 31, 120)
HSLhsl(243, 59%, 30%)
HSVhsv(243, 74%, 47%)
CMYKcmyk(70.8%, 74.2%, 0%, 52.9%)
CIE-LABlab(18.77, 31.97, -49.91)
CIE-LCHlch(18.77, 59.27, 302.65°)
OKLaboklab(31.33% 0.0151 -0.1442)
OKLCHoklch(31.33% 0.145 276)
XYZxyz(4.5722, 2.6930, 18.0445)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F78 #74781F
analogous
#1F4778 #231F78 #501F78
triadic
#231F78 #78231F #1F7823
tetradic
#231F78 #781F47 #74781F #1F7850
square
#231F78 #781F47 #74781F #1F7850
split-complementary
#231F78 #78501F #47781F
monochromatic
#070618 #151247 #231F78 #312CA9 #4943CE

Accessibility & contrast

On white

13.65
#231F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#231F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F78
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F78#FFFFFF#000000##FFFFFF
##231F781.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231f78;
/* rgb */ color: rgb(35, 31, 120);
/* oklch */ color: oklch(31.3% 0.145 276.0);
Tailwind
colors: {
  custom: {
    50: '#6b5ca0',
    500: '#231f78',
    950: '#000000',
  },
}
SCSS
$custom: #231f78;
$custom-light: #6b5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#231f78",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 242.697,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31334,
    "c": 0.14499,
    "h": 276
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#231F78
secondary
#A7AB47
accent
#E246DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #231F78

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

Preview Lab → · Contrast checker → · Palette generator →

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