#231F7A#231F7A

#231F7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.148 H 275.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#231F7A
RGBrgb(35, 31, 122)
HSLhsl(243, 59%, 30%)
HSVhsv(243, 75%, 48%)
CMYKcmyk(71.3%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.98, 32.68, -50.84)
CIE-LCHlch(18.98, 60.44, 302.73°)
OKLaboklab(31.55% 0.0148 -0.1469)
OKLCHoklch(31.55% 0.148 275.7)
XYZxyz(4.6948, 2.7420, 18.6904)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F7A #767A1F
analogous
#1F497A #231F7A #501F7A
triadic
#231F7A #7A231F #1F7A23
tetradic
#231F7A #7A1F49 #767A1F #1F7A50
square
#231F7A #7A1F49 #767A1F #1F7A50
split-complementary
#231F7A #7A501F #497A1F
monochromatic
#070618 #151349 #231F7A #312BAB #4A44CF

Accessibility & contrast

On white

13.56
#231F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F7A
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F7A#FFFFFF#000000##FFFFFF
##231F7A1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231f7a;
/* rgb */ color: rgb(35, 31, 122);
/* oklch */ color: oklch(31.5% 0.148 275.7);
Tailwind
colors: {
  custom: {
    50: '#6c5ca1',
    500: '#231f7a',
    950: '#000000',
  },
}
SCSS
$custom: #231f7a;
$custom-light: #6c5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#231f7a",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 242.637,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.14767,
    "h": 275.7
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#231F7A
secondary
#A9AD47
accent
#E345DC
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #231F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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