#231F7B#231F7B

#231F7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.149 H 275.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#231F7B
RGBrgb(35, 31, 123)
HSLhsl(243, 60%, 30%)
HSVhsv(243, 75%, 48%)
CMYKcmyk(71.5%, 74.8%, 0%, 51.8%)
CIE-LABlab(19.09, 33.03, -51.31)
CIE-LCHlch(19.09, 61.02, 302.78°)
OKLaboklab(31.65% 0.0146 -0.1483)
OKLCHoklch(31.65% 0.149 275.6)
XYZxyz(4.7571, 2.7669, 19.0184)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F7B #777B1F
analogous
#1F497B #231F7B #511F7B
triadic
#231F7B #7B231F #1F7B23
tetradic
#231F7B #7B1F49 #777B1F #1F7B51
square
#231F7B #7B1F49 #777B1F #1F7B51
split-complementary
#231F7B #7B511F #497B1F
monochromatic
#070619 #15134A #231F7B #312BAC #4A44D0

Accessibility & contrast

On white

13.52
#231F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#231F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F7B
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F7B#FFFFFF#000000##FFFFFF
##231F7B1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231f7b;
/* rgb */ color: rgb(35, 31, 123);
/* oklch */ color: oklch(31.7% 0.149 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c5ca2',
    500: '#231f7b',
    950: '#000000',
  },
}
SCSS
$custom: #231f7b;
$custom-light: #6c5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#231f7b",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 242.609,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31654,
    "c": 0.14899,
    "h": 275.6
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#231F7B
secondary
#AAAE48
accent
#E345DC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #231F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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