#231895#231895

#231895 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.188 H 273.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#231895
RGBrgb(35, 24, 149)
HSLhsl(245, 72%, 34%)
HSVhsv(245, 84%, 58%)
CMYKcmyk(76.5%, 83.9%, 0%, 41.6%)
CIE-LABlab(20.75, 45.46, -64.88)
CIE-LCHlch(20.75, 79.22, 305.02°)
OKLaboklab(33.7% 0.0115 -0.1876)
OKLCHoklch(33.7% 0.188 273.5)
XYZxyz(6.4428, 3.1798, 28.7022)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231895 #8A9518
analogous
#184C95 #231895 #621895
triadic
#231895 #952318 #189523
tetradic
#231895 #95184C #8A9518 #189562
square
#231895 #95184C #8A9518 #189562
split-complementary
#231895 #956218 #4C9518
monochromatic
#0A072C #171060 #231895 #2F20CA #5446E1

Accessibility & contrast

On white

12.83
#231895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#231895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231895
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231895#FFFFFF#000000##FFFFFF
##2318951.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002C93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231895;
/* rgb */ color: rgb(35, 24, 149);
/* oklch */ color: oklch(33.7% 0.188 273.5);
Tailwind
colors: {
  custom: {
    50: '#7359b6',
    500: '#231895',
    950: '#000000',
  },
}
SCSS
$custom: #231895;
$custom-light: #7359b6;
$custom-dark: #000000;
JSON
{
  "hex": "#231895",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 245.28,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33699,
    "c": 0.18799,
    "h": 273.5
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#231895
secondary
#B7C246
accent
#EF39DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231895

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

Preview Lab → · Contrast checker → · Palette generator →

#231895 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva