#231F79#231F79

#231F79 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.146 H 275.9°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#231F79
RGBrgb(35, 31, 121)
HSLhsl(243, 59%, 30%)
HSVhsv(243, 74%, 47%)
CMYKcmyk(71.1%, 74.4%, 0%, 52.5%)
CIE-LABlab(18.87, 32.33, -50.38)
CIE-LCHlch(18.87, 59.86, 302.69°)
OKLaboklab(31.44% 0.0149 -0.1456)
OKLCHoklch(31.44% 0.146 275.9)
XYZxyz(4.6332, 2.7174, 18.3658)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F79 #75791F
analogous
#1F4879 #231F79 #501F79
triadic
#231F79 #79231F #1F7923
tetradic
#231F79 #791F48 #75791F #1F7950
square
#231F79 #791F48 #75791F #1F7950
split-complementary
#231F79 #79501F #48791F
monochromatic
#070618 #151348 #231F79 #312BAA #4A43CF

Accessibility & contrast

On white

13.60
#231F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F79
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F79#FFFFFF#000000##FFFFFF
##231F791.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231f79;
/* rgb */ color: rgb(35, 31, 121);
/* oklch */ color: oklch(31.4% 0.146 275.9);
Tailwind
colors: {
  custom: {
    50: '#6b5ca1',
    500: '#231f79',
    950: '#000000',
  },
}
SCSS
$custom: #231f79;
$custom-light: #6b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#231f79",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 242.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.14633,
    "h": 275.9
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#231F79
secondary
#A8AC47
accent
#E245DB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #231F79

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

Preview Lab → · Contrast checker → · Palette generator →

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